Skip to content

Commit

Permalink
airwindows: init at 2020-05-25
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetophon committed May 28, 2020
1 parent 5f63bf7 commit 89cd7ea
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/applications/audio/airwindows/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
{ stdenv, fetchFromGitHub, requireFile, unzip, cmake }:

stdenv.mkDerivation rec {
name = "airwindows-${version}";
version = "2020-05-25";

src = fetchFromGitHub {
owner = "airwindows";
repo = "airwindows";
rev = "897c0830e603a950e838a3753f89334bdf56bb71";
sha256 = "1mh7c176fdl5y5ixkgzj2j2b7qifp3lgnxmbn6b7bvg3sv5wsxg3";
};

vst-sdk = stdenv.mkDerivation rec {
name = "vstsdk366_27_06_2016_build_61";
src = requireFile {
name = "${name}.zip";
url = "https://www.steinberg.net/sdk_downloads/vstsdk366_27_06_2016_build_61.zip";
sha256 = "05gsr13bpi2hhp34rvhllsvmn44rqvmjdpg9fsgfzgylfkz0kiki";
};
nativeBuildInputs = [ unzip ];
installPhase = "cp -r . $out";
};

airwindows-ports = stdenv.mkDerivation rec {
name = "airwindows-ports";
src = fetchFromGitHub {
owner = "ech2";
repo = "airwindows-ports";
rev = "0.4.0";
sha256 = "1ya4qbc63sb52nzisdapsydrnnpqnjsl5kgxibbr3dxf32474g89";
};
installPhase = "cp -r . $out";
};

nativeBuildInputs = [ cmake ];

patchPhase = ''
cd plugins/LinuxVST
rm build/CMakeCache.txt
mkdir -p include/vstsdk
cp -r ${airwindows-ports}/include/vstsdk/CMakeLists.txt include/vstsdk/
cp -r ${vst-sdk}/pluginterfaces include/vstsdk/pluginterfaces
cp -r ${vst-sdk}/public.sdk/source/vst2.x/* include/vstsdk/
chmod -R 777 include/vstsdk/pluginterfaces
'';

installPhase = ''
for so_file in *.so; do
install -vDm 644 $so_file -t "$out/lib/lxvst"
done;
'';

meta = with stdenv.lib; {
description = "Handsewn bespoke linuxvst plugins";
homepage = http://www.airwindows.com/airwindows-linux/;
# airwindows is mit, but the vst sdk is unfree
license = licenses.unfree;
platforms = platforms.linux;
maintainers = [ maintainers.magnetophon ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18580,6 +18580,8 @@ in

airwave = callPackage ../applications/audio/airwave { };

airwindows = callPackage ../applications/audio/airwindows { };

akira-unstable = callPackage ../applications/graphics/akira { };

alembic = callPackage ../development/libraries/alembic {};
Expand Down

0 comments on commit 89cd7ea

Please sign in to comment.