-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5f63bf7
commit 89cd7ea
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters