Files
nixpkgs/pkgs/by-name/ai/airwindows/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

69 lines
1.4 KiB
Nix

{
stdenv,
fetchFromGitHub,
lib,
cmake,
nix-update-script,
vst2-sdk,
}:
stdenv.mkDerivation {
pname = "airwindows";
version = "0-unstable-2025-09-20";
src = fetchFromGitHub {
owner = "airwindows";
repo = "airwindows";
rev = "3381f94bfef51551e3b060f45057ab613129fb35";
hash = "sha256-6CUAAxuqfEMb4zhrkBLHccFfaSHhP/PTiBFJAZmFMnE=";
};
# we patch helpers because honestly im spooked out by where those variables
# came from.
prePatch = ''
mkdir -p plugins/LinuxVST/include
ln -s ${vst2-sdk} plugins/LinuxVST/include/vstsdk
'';
patches = [
./cmakelists-and-helper.patch
];
# we are building for linux, so we go to linux
preConfigure = ''
cd plugins/LinuxVST
'';
cmakeBuildType = "Release";
cmakeFlags = [ ];
nativeBuildInputs = [
cmake
];
buildInputs = [
vst2-sdk
];
installPhase = ''
runHook preInstall
mkdir -p $out/lib/vst/airwindows
find "$PWD" -type f -name "*.so" -exec install -Dm755 {} $out/lib/vst/airwindows \;
runHook postInstall
'';
passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; };
meta = {
description = "All Airwindows VST Plugins";
homepage = "https://airwindows.com/";
platforms = lib.platforms.linux;
license = [
lib.licenses.mit
];
maintainers = [ lib.maintainers.l1npengtul ];
};
}