nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 fetchFromGitHub,
4 lib,
5 cmake,
6 nix-update-script,
7 vst2-sdk,
8}:
9stdenv.mkDerivation {
10 pname = "airwindows";
11 version = "0-unstable-2026-01-25";
12
13 src = fetchFromGitHub {
14 owner = "airwindows";
15 repo = "airwindows";
16 rev = "597fcb482ef48a7f7a68736ea37b0badeecbb3c7";
17 hash = "sha256-J+ZtneHb7hXZ1W7vt+5MSYS1P466tUVjH7zKMzn284Y=";
18 };
19
20 # we patch helpers because honestly im spooked out by where those variables
21 # came from.
22 prePatch = ''
23 mkdir -p plugins/LinuxVST/include
24 ln -s ${vst2-sdk} plugins/LinuxVST/include/vstsdk
25 '';
26
27 patches = [
28 ./cmakelists-and-helper.patch
29 ];
30
31 # we are building for linux, so we go to linux
32 preConfigure = ''
33 cd plugins/LinuxVST
34 '';
35
36 cmakeBuildType = "Release";
37
38 cmakeFlags = [ ];
39
40 nativeBuildInputs = [
41 cmake
42 ];
43
44 buildInputs = [
45 vst2-sdk
46 ];
47
48 installPhase = ''
49 runHook preInstall
50
51 mkdir -p $out/lib/vst/airwindows
52 find "$PWD" -type f -name "*.so" -exec install -Dm755 {} $out/lib/vst/airwindows \;
53
54 runHook postInstall
55 '';
56
57 passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
58
59 meta = {
60 description = "All Airwindows VST Plugins";
61 homepage = "https://airwindows.com/";
62 platforms = lib.platforms.linux;
63 license = [
64 lib.licenses.mit
65 ];
66 maintainers = [ lib.maintainers.l1npengtul ];
67 };
68}