nixos-config/nixos/pkgs/bitwig-studio/bitwig-studio3.nix
2021-09-25 20:28:25 +02:00

23 lines
582 B
Nix

{ stdenv, fetchurl, bitwig-studio2, xorg, ... }:
bitwig-studio2.overrideAttrs (oldAttrs: rec {
name = "bitwig-studio-${version}";
version = "3.2.8";
src = fetchurl {
url =
"https://downloads.bitwig.com/stable/${version}/bitwig-studio-${version}.deb";
sha256 = "18ldgmnv7bigb4mch888kjpf4abalpiwmlhwd7rjb9qf6p72fhpj";
};
buildInputs = bitwig-studio2.buildInputs ++ [ xorg.libXtst ];
installPhase = ''
${oldAttrs.installPhase}
# recover commercial jre
rm -f $out/libexec/lib/jre
cp -r opt/bitwig-studio/lib/jre $out/libexec/lib
'';
})