{ 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 ]; }; }