airwindows: init at 0-unstable-2025-01-06 (#371817)


Co-authored-by: nicoo <nicoo@debian.org>

authored by

lain ping tool
nicoo
and committed by
GitHub
870951ce e4da98ae

+120
+31
pkgs/by-name/ai/airwindows/cmakelists-and-helper.patch
··· 1 + diff --git a/plugins/LinuxVST/CMakeLists.txt b/plugins/LinuxVST/CMakeLists.txt 2 + index f43ea128..b87a5c03 100755 3 + --- a/plugins/LinuxVST/CMakeLists.txt 4 + +++ b/plugins/LinuxVST/CMakeLists.txt 5 + @@ -2,11 +2,24 @@ cmake_minimum_required(VERSION 3.9) 6 + project(airwindows_ports) 7 + 8 + set(CMAKE_CXX_STANDARD 14) 9 + -add_compile_options(-O2 -D__cdecl=) 10 + +add_compile_options(-D__cdecl=) 11 + + 12 + +set(VST2_SDK_PATH "${PROJECT_SOURCE_DIR}/include/vstsdk" CACHE STRING "VST2 SDK Path") 13 + + 14 + +set(VSTSDK_ROOT 15 + + "${VST2_SDK_PATH}" 16 + + "${VST2_SDK_PATH}/pluginterfaces/vst2.x/" 17 + + "${VST2_SDK_PATH}/public.sdk/source/vst2.x/" 18 + +) 19 + + 20 + +set(VSTSDK_SOURCES 21 + + "${VST2_SDK_PATH}/public.sdk/source/vst2.x/audioeffectx.cpp" 22 + + "${VST2_SDK_PATH}/public.sdk/source/vst2.x/audioeffect.cpp" 23 + + "${VST2_SDK_PATH}/public.sdk/source/vst2.x/vstplugmain.cpp" 24 + +) 25 + 26 + include(Helpers.cmake) 27 + 28 + -add_subdirectory(include/vstsdk) 29 + add_airwindows_plugin(Acceleration) 30 + add_airwindows_plugin(Acceleration2) 31 + add_airwindows_plugin(ADClip7)
+89
pkgs/by-name/ai/airwindows/package.nix
··· 1 + { 2 + stdenv, 3 + fetchFromGitHub, 4 + fetchzip, 5 + lib, 6 + cmake, 7 + nix-update-script, 8 + }: 9 + let 10 + # adapted from oxefmsynth 11 + vst-sdk = stdenv.mkDerivation { 12 + dontConfigure = true; 13 + dontPatch = true; 14 + dontBuild = true; 15 + dontStrip = true; 16 + dontPatchELF = true; 17 + 18 + name = "vstsdk3610_11_06_2018_build_37"; 19 + src = fetchzip { 20 + url = "https://web.archive.org/web/20181016150224if_/https://download.steinberg.net/sdk_downloads/vstsdk3610_11_06_2018_build_37.zip"; 21 + sha256 = "0da16iwac590wphz2sm5afrfj42jrsnkr1bxcy93lj7a369ildkj"; 22 + }; 23 + 24 + installPhase = '' 25 + cp -r VST2_SDK $out 26 + ''; 27 + }; 28 + in 29 + stdenv.mkDerivation { 30 + pname = "airwindows"; 31 + version = "0-unstable-2025-01-06"; 32 + 33 + src = fetchFromGitHub { 34 + owner = "airwindows"; 35 + repo = "airwindows"; 36 + rev = "0ca33035253b9fc0c6c876592d9e5ff3a654cd10"; 37 + hash = "sha256-+AyB6y179BRWTvflA9Ld5utpF2scSJDszkGa8BCvPdM="; 38 + }; 39 + 40 + # we patch helpers because honestly im spooked out by where those variables 41 + # came from. 42 + prePatch = '' 43 + mkdir -p plugins/LinuxVST/include 44 + ln -s ${vst-sdk.out} plugins/LinuxVST/include/vstsdk 45 + ''; 46 + 47 + patches = [ 48 + ./cmakelists-and-helper.patch 49 + ]; 50 + 51 + # we are building for linux, so we go to linux 52 + preConfigure = '' 53 + cd plugins/LinuxVST 54 + ''; 55 + 56 + cmakeBuildType = "Release"; 57 + 58 + cmakeFlags = [ ]; 59 + 60 + nativeBuildInputs = [ 61 + cmake 62 + ]; 63 + 64 + buildInputs = [ 65 + vst-sdk 66 + ]; 67 + 68 + installPhase = '' 69 + runHook preInstall 70 + 71 + mkdir -p $out/lib/vst/airwindows 72 + find "$PWD" -type f -name "*.so" -exec install -Dm755 {} $out/lib/vst/airwindows \; 73 + 74 + runHook postInstall 75 + ''; 76 + 77 + passthru.updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; 78 + 79 + meta = { 80 + description = "All Airwindows VST Plugins"; 81 + homepage = "https://airwindows.com/"; 82 + platforms = lib.platforms.linux; 83 + license = [ 84 + lib.licenses.mit 85 + lib.licenses.unfree 86 + ]; 87 + maintainers = [ lib.maintainers.l1npengtul ]; 88 + }; 89 + }