Skip to content

Commit

Permalink
bitwig-studio: 5.2.5 -> 5.2.7, fix Onset and Beat detection
Browse files Browse the repository at this point in the history
  • Loading branch information
polygon committed Nov 29, 2024
1 parent e3ac562 commit 69a8d48
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 4 deletions.
6 changes: 3 additions & 3 deletions pkgs/applications/audio/bitwig-studio/bitwig-studio5.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
}:

stdenv.mkDerivation rec {
pname = "bitwig-studio";
version = "5.2.5";
pname = "bitwig-studio-unwrapped";
version = "5.2.7";

src = fetchurl {
name = "bitwig-studio-${version}.deb";
url = "https://www.bitwig.com/dl/Bitwig%20Studio/${version}/installer_linux/";
hash = "sha256-x6Uw6o+a3nArMm1Ev5ytGtLDGQ3r872WqlC022zT8Hk=";
hash = "sha256-Tyi7qYhTQ5i6fRHhrmz4yHXSdicd4P4iuF9FRKRhkMI=";
};

nativeBuildInputs = [ dpkg makeWrapper wrapGAppsHook3 ];
Expand Down
36 changes: 36 additions & 0 deletions pkgs/applications/audio/bitwig-studio/bitwig-wrapper.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{ stdenv, bindfs, bubblewrap, mktemp, writeShellScript, bitwig-studio-unwrapped }:
stdenv.mkDerivation {
inherit (bitwig-studio-unwrapped) version;

pname = "bitwig-studio";

dontUnpack = true;
dontConfigure = true;
dontBuild = true;
dontPatchELF = true;
dontStrip = true;

installPhase = let
wrapper = writeShellScript "bitwig-studio" ''
set -e
echo "Creating temporary directory"
TMPDIR=$(${mktemp}/bin/mktemp --directory)
echo "Temporary directory: $TMPDIR"
echo "Copying default Vamp Plugin settings"
cp -r ${bitwig-studio-unwrapped}/libexec/resources/VampTransforms $TMPDIR
echo "Changing permissions to be writable"
chmod -R u+w $TMPDIR/VampTransforms
echo "Starting Bitwig Studio in Bubblewrap Environment"
${bubblewrap}/bin/bwrap --bind / / --bind $TMPDIR/VampTransforms ${bitwig-studio-unwrapped}/libexec/resources/VampTransforms ${bitwig-studio-unwrapped}/bin/bitwig-studio || true
echo "Bitwig exited, removing temporary directory"
rm -rf $TMPDIR
'';
in ''
mkdir -p $out/bin
cp ${wrapper} $out/bin/bitwig-studio
cp -r ${bitwig-studio-unwrapped}/share $out
'';
}
6 changes: 5 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13405,10 +13405,14 @@ with pkgs;
bitwig-studio4 = callPackage ../applications/audio/bitwig-studio/bitwig-studio4.nix {
libjpeg = libjpeg8;
};
bitwig-studio5 = callPackage ../applications/audio/bitwig-studio/bitwig-studio5.nix {
bitwig-studio5-unwrapped = callPackage ../applications/audio/bitwig-studio/bitwig-studio5.nix {
libjpeg = libjpeg8;
};

bitwig-studio5 = callPackage ../applications/audio/bitwig-studio/bitwig-wrapper.nix {
bitwig-studio-unwrapped = bitwig-studio5-unwrapped;
};

bitwig-studio = bitwig-studio5;

blackbox = callPackage ../applications/version-management/blackbox {
Expand Down

0 comments on commit 69a8d48

Please sign in to comment.