Skip to content

Commit

Permalink
airwave: use vstsdk366_27_06_2016_build_61
Browse files Browse the repository at this point in the history
* The currently required version (`vstsdk368_08_11_2017_build_121.zip`) seems to have fallen off the Internet.
* The latest version (`vst-sdk_3.6.14_build-24_2019-11-29.zip`) can be automatically downloaded from Steinberg's servers, however it does not contain the VST2 SDK headers needed by Airwave.
* I've raised an issue on the [Steinberg VST SDK GitHub](steinbergmedia/vst3sdk#51) to make the VST2 SDK easily available.
* In the meantime, I propose this fix. It's the only way I've managed to build Airwave from nixpkgs; caveat, I am yet to test it with any real Windows VSTs.
  • Loading branch information
egasimus authored Mar 11, 2020
1 parent a3dde62 commit 63ade2d
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions pkgs/applications/audio/airwave/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{ stdenv, multiStdenv, cmake, fetchFromGitHub, file, libX11, makeWrapper
, qt5, requireFile, unzip, wine
, qt5, fetchurl, unzip, wine
}:

let
Expand All @@ -14,13 +14,12 @@ let
};

vst-sdk = stdenv.mkDerivation rec {
name = "vstsdk368_08_11_2017_build_121";
src = requireFile {
name = "${name}.zip";
url = "http://www.steinberg.net/en/company/developers.html";
sha256 = "e0f235d8826d70f1ae0ae5929cd198acae1ecff74612fde5c60cbfb45c2f4a70";
};
name = "vstsdk366_27_06_2016_build_61";
nativeBuildInputs = [ unzip ];
src = fetchurl {
url = "https://www.steinberg.net/sdk_downloads/${name}.zip";
sha256 = "05gsr13bpi2hhp34rvhllsvmn44rqvmjdpg9fsgfzgylfkz0kiki";
};
installPhase = "cp -r . $out";
meta.license = stdenv.lib.licenses.unfree;
};
Expand Down Expand Up @@ -63,7 +62,7 @@ multiStdenv.mkDerivation {
# Cf. https://github.com/phantom-code/airwave/issues/57
hardeningDisable = [ "format" ];

cmakeFlags = [ "-DVSTSDK_PATH=${vst-sdk}/VST2_SDK" ];
cmakeFlags = [ "-DVSTSDK_PATH=${vst-sdk}" ];

postInstall = ''
mv $out/bin $out/libexec
Expand Down

0 comments on commit 63ade2d

Please sign in to comment.