Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions pkgs/applications/audio/airwindows/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
{ stdenv, lib, fetchFromGitHub, requireFile, fetchzip, cmake }:

stdenv.mkDerivation rec {
pname = "airwindows";
version = "unstable-2022-01-29";

src = fetchFromGitHub {
owner = "airwindows";
repo = "airwindows";
rev = "f1e7313c284110347f2907ebe47ad1c03a9b2e9e";
sha256 = "sha256-3P65nnSTceSoFHSFkYLr5yXCyRGgV5Zg6L0R4wP7XTw=";
};

# equal to vst-sdk in ../oxefmsynth/default.nix
vst-sdk = stdenv.mkDerivation rec {
name = "vstsdk3610_11_06_2018_build_37";
src = fetchzip {
url = "https://web.archive.org/web/20181016150224if_/https://download.steinberg.net/sdk_downloads/${name}.zip";
sha256 = "0da16iwac590wphz2sm5afrfj42jrsnkr1bxcy93lj7a369ildkj";
};
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";
};
Comment on lines 26 to 35
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we copy everything to $out and do nothing else we can also only use fetchFromGitHub.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand.
I thought you meant to remove the installPhase, but that errors out.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


nativeBuildInputs = [ cmake ];

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

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

meta = with lib; {
description = "Handsewn bespoke linuxvst plugins";
homepage = "https://www.airwindows.com/airwindows-linux/";
# airwindows is mit, but the vst sdk is unfree
licenses = with licenses; [ mit 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 @@ -976,6 +976,8 @@ with pkgs;

airtame = callPackage ../applications/misc/airtame { };

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

aj-snapshot = callPackage ../applications/audio/aj-snapshot { };

ajour = callPackage ../tools/games/ajour {
Expand Down