Merge pull request #53451 from gnidorah/bitwig
bitwig-studio2: 2.3.5 -> 2.4.3
This commit is contained in:
commit
e6293287f6
@ -1,8 +1,8 @@
|
|||||||
{ stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, freetype, gdk_pixbuf
|
{ stdenv, fetchurl, alsaLib, bzip2, cairo, dpkg, freetype, gdk_pixbuf
|
||||||
, glib, gtk2, harfbuzz, jdk, lib, xorg
|
, wrapGAppsHook, gtk2, gtk3, harfbuzz, jdk, lib, xorg
|
||||||
, libbsd, libjack2, libpng
|
, libbsd, libjack2, libpng, ffmpeg
|
||||||
, libxkbcommon
|
, libxkbcommon
|
||||||
, makeWrapper, pixman
|
, makeWrapper, pixman, autoPatchelfHook
|
||||||
, xdg_utils, zenity, zlib }:
|
, xdg_utils, zenity, zlib }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -14,22 +14,21 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0n0fxh9gnmilwskjcayvjsjfcs3fz9hn00wh7b3gg0cv3qqhich8";
|
sha256 = "0n0fxh9gnmilwskjcayvjsjfcs3fz9hn00wh7b3gg0cv3qqhich8";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ dpkg makeWrapper ];
|
nativeBuildInputs = [ dpkg makeWrapper autoPatchelfHook wrapGAppsHook ];
|
||||||
|
|
||||||
unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root";
|
unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root";
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
dontPatchELF = true;
|
dontWrapGApps = true; # we only want $gappsWrapperArgs here
|
||||||
dontStrip = true;
|
|
||||||
|
|
||||||
libPath = with xorg; lib.makeLibraryPath [
|
buildInputs = with xorg; [
|
||||||
alsaLib bzip2.out cairo freetype gdk_pixbuf glib gtk2 harfbuzz libX11 libXau
|
alsaLib bzip2.out cairo freetype gdk_pixbuf gtk2 gtk3 harfbuzz libX11 libXau
|
||||||
libXcursor libXdmcp libXext libXfixes libXrender libbsd libjack2 libpng libxcb
|
libXcursor libXdmcp libXext libXfixes libXrender libbsd libjack2 libpng libxcb
|
||||||
libxkbfile pixman xcbutil xcbutilwm zlib
|
libxkbfile pixman xcbutil xcbutilwm zlib
|
||||||
];
|
];
|
||||||
|
|
||||||
binPath = lib.makeBinPath [
|
binPath = lib.makeBinPath [
|
||||||
xdg_utils zenity
|
xdg_utils zenity ffmpeg
|
||||||
];
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
@ -49,6 +48,16 @@ stdenv.mkDerivation rec {
|
|||||||
rm -rf $out/libexec/lib/jre
|
rm -rf $out/libexec/lib/jre
|
||||||
ln -s ${jdk.home}/jre $out/libexec/lib/jre
|
ln -s ${jdk.home}/jre $out/libexec/lib/jre
|
||||||
|
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio
|
||||||
|
|
||||||
|
cp -r usr/share $out/share
|
||||||
|
substitute usr/share/applications/bitwig-studio.desktop \
|
||||||
|
$out/share/applications/bitwig-studio.desktop \
|
||||||
|
--replace /usr/bin/bitwig-studio $out/bin/bitwig-studio
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
# Bitwig’s `libx11-windowing-system.so` has several problems:
|
# Bitwig’s `libx11-windowing-system.so` has several problems:
|
||||||
#
|
#
|
||||||
# • has some old version of libxkbcommon linked statically (ಠ_ಠ),
|
# • has some old version of libxkbcommon linked statically (ಠ_ಠ),
|
||||||
@ -67,22 +76,11 @@ stdenv.mkDerivation rec {
|
|||||||
-not -name '*.so' \
|
-not -name '*.so' \
|
||||||
-not -path '*/resources/*' | \
|
-not -path '*/resources/*' | \
|
||||||
while IFS= read -r f ; do
|
while IFS= read -r f ; do
|
||||||
patchelf \
|
|
||||||
--set-interpreter $(cat ${stdenv.cc}/nix-support/dynamic-linker) \
|
|
||||||
$f && \
|
|
||||||
wrapProgram $f \
|
wrapProgram $f \
|
||||||
--prefix PATH : "${binPath}" \
|
--prefix PATH : "${binPath}" \
|
||||||
--prefix LD_LIBRARY_PATH : "${libPath}" \
|
"''${gappsWrapperArgs[@]}" \
|
||||||
--set LD_PRELOAD "${libxkbcommon.out}/lib/libxkbcommon.so" || true
|
--set LD_PRELOAD "${libxkbcommon.out}/lib/libxkbcommon.so" || true
|
||||||
done
|
done
|
||||||
|
|
||||||
mkdir -p $out/bin
|
|
||||||
ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio
|
|
||||||
|
|
||||||
cp -r usr/share $out/share
|
|
||||||
substitute usr/share/applications/bitwig-studio.desktop \
|
|
||||||
$out/share/applications/bitwig-studio.desktop \
|
|
||||||
--replace /usr/bin/bitwig-studio $out/bin/bitwig-studio
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -1,18 +1,16 @@
|
|||||||
{ stdenv, fetchurl, bitwig-studio1,
|
{ stdenv, fetchurl, bitwig-studio1,
|
||||||
xdg_utils, zenity, ffmpeg }:
|
xdg_utils, zenity, ffmpeg, pulseaudio }:
|
||||||
|
|
||||||
bitwig-studio1.overrideAttrs (oldAttrs: rec {
|
bitwig-studio1.overrideAttrs (oldAttrs: rec {
|
||||||
name = "bitwig-studio-${version}";
|
name = "bitwig-studio-${version}";
|
||||||
version = "2.3.5";
|
version = "2.4.3";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
|
url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
|
||||||
sha256 = "1v62z08hqla8fz5m7hl9ynf2hpr0j0arm0nb5lpd99qrv36ibrsc";
|
sha256 = "17754y4ni0zj9vjxl8ldivi33gdb0nk6sdlcmlpskgffrlx8di08";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = bitwig-studio1.buildInputs ++ [ ffmpeg ];
|
runtimeDependencies = [
|
||||||
|
pulseaudio
|
||||||
binPath = stdenv.lib.makeBinPath [
|
|
||||||
ffmpeg xdg_utils zenity
|
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user