···11-{ stdenv, fetchurl, alsa-lib, bzip2, cairo, dpkg, freetype, gdk-pixbuf
22-, wrapGAppsHook, gtk2, gtk3, harfbuzz, jdk, lib, xorg
33-, libbsd, libjack2, libpng, ffmpeg
44-, libxkbcommon
55-, makeWrapper, pixman, autoPatchelfHook
66-, xdg-utils, zenity, zlib }:
77-88-stdenv.mkDerivation rec {
99- pname = "bitwig-studio";
1010- version = "1.3.16";
1111-1212- src = fetchurl {
1313- url = "https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
1414- sha256 = "0n0fxh9gnmilwskjcayvjsjfcs3fz9hn00wh7b3gg0cv3qqhich8";
1515- };
1616-1717- nativeBuildInputs = [ dpkg makeWrapper autoPatchelfHook wrapGAppsHook ];
1818-1919- unpackCmd = "mkdir root ; dpkg-deb -x $curSrc root";
2020-2121- dontBuild = true;
2222- dontWrapGApps = true; # we only want $gappsWrapperArgs here
2323-2424- buildInputs = with xorg; [
2525- alsa-lib bzip2.out cairo freetype gdk-pixbuf gtk2 gtk3 harfbuzz libX11 libXau
2626- libXcursor libXdmcp libXext libXfixes libXrender libbsd libjack2 libpng libxcb
2727- libxkbfile pixman xcbutil xcbutilwm zlib
2828- ];
2929-3030- installPhase = ''
3131- mkdir -p $out
3232- cp -r opt/bitwig-studio $out/libexec
3333-3434- # Use NixOS versions of these libs instead of the bundled ones.
3535- (
3636- cd $out/libexec/lib/bitwig-studio
3737- rm libbz2.so* libxkbfile.so* libXcursor.so* libXau.so* \
3838- libXdmcp.so* libpng16.so* libxcb*.so* libharfbuzz.so* \
3939- libcairo.so* libfreetype.so*
4040- ln -s ${bzip2.out}/lib/libbz2.so.1.0.6 libbz2.so.1.0
4141- )
4242-4343- # Use our OpenJDK instead of Bitwig’s bundled—and commercial!—one.
4444- rm -rf $out/libexec/lib/jre
4545- ln -s ${jdk.home}/jre $out/libexec/lib/jre
4646-4747- mkdir -p $out/bin
4848- ln -s $out/libexec/bitwig-studio $out/bin/bitwig-studio
4949-5050- cp -r usr/share $out/share
5151- substitute usr/share/applications/bitwig-studio.desktop \
5252- $out/share/applications/bitwig-studio.desktop \
5353- --replace /usr/bin/bitwig-studio $out/bin/bitwig-studio
5454- '';
5555-5656- postFixup = ''
5757- # Bitwig’s `libx11-windowing-system.so` has several problems:
5858- #
5959- # • has some old version of libxkbcommon linked statically (ಠ_ಠ),
6060- #
6161- # • hardcodes path to `/usr/share/X11/xkb`,
6262- #
6363- # • even if we redirected it with libredirect (after adding
6464- # `eaccess()` to libredirect!), their version of libxkbcommon
6565- # is unable to parse our xkeyboardconfig. Been there, done that.
6666- #
6767- # However, it suffices to override theirs with our libxkbcommon
6868- # in LD_PRELOAD. :-)
6969-7070- find $out -type f -executable \
7171- -not -name '*.so.*' \
7272- -not -name '*.so' \
7373- -not -path '*/resources/*' | \
7474- while IFS= read -r f ; do
7575- wrapProgram $f \
7676- --suffix PATH : "${lib.makeBinPath [ ffmpeg zenity ]}" \
7777- --prefix PATH : "${lib.makeBinPath [ xdg-utils ]}" \
7878- "''${gappsWrapperArgs[@]}" \
7979- --set LD_PRELOAD "${libxkbcommon.out}/lib/libxkbcommon.so" || true
8080- done
8181- '';
8282-8383- meta = with lib; {
8484- description = "A digital audio workstation";
8585- longDescription = ''
8686- Bitwig Studio is a multi-platform music-creation system for
8787- production, performance and DJing, with a focus on flexible
8888- editing tools and a super-fast workflow.
8989- '';
9090- homepage = "https://www.bitwig.com/";
9191- license = licenses.unfree;
9292- platforms = [ "x86_64-linux" ];
9393- maintainers = with maintainers; [ michalrus mrVanDalo ];
9494- };
9595-}
+1
pkgs/top-level/aliases.nix
···8787 bazel_3 = throw "bazel 3 is past end of life as it is not an lts version"; # Added 2023-02-02
8888 bedup = throw "bedup was removed because it was broken and abandoned upstream"; # added 2023-02-04
8989 bird2 = bird; # Added 2022-02-21
9090+ bitwig-studio1 = throw "bitwig-studio1 has been removed, you can upgrade to 'bitwig-studio'"; # Added 2023-01-03
9091 bitwig-studio2 = throw "bitwig-studio2 has been removed, you can upgrade to 'bitwig-studio'"; # Added 2023-01-03
9192 ddclient = throw "ddclient has been removed on the request of the upstream maintainer because it is unmaintained and has bugs. Please switch to a different software like `inadyn` or `knsupdate`."; # Added 2023-07-04
9293 bluezFull = throw "'bluezFull' has been renamed to/replaced by 'bluez'"; # Converted to throw 2023-09-10