From f6254e6cd11d5103ba198a3adb9d92357597672d Mon Sep 17 00:00:00 2001 From: Emil Kosz Date: Sat, 24 Jan 2026 06:19:35 +0100 Subject: [PATCH] VST2 SDK already included in nixpkgs --- package.nix | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/package.nix b/package.nix index 49a34b8..956e68c 100644 --- a/package.nix +++ b/package.nix @@ -21,6 +21,7 @@ , libsndfile , ladspaH , ladspaPlugins +, vst2-sdk , glib , calf , binutils-unwrapped @@ -53,10 +54,8 @@ let qt-web = if useQwebengine then qt5.qtwebengine else qt5.qtwebkit; - # Static binutils is required by Radium, specifically `libbfd.a'. - binutils-static = binutils-unwrapped.override { enableShared = false; }; - - # Needs to be an older version. + binutils-static = binutils-unwrapped.override { enableShared = false; }; + xcbproto-1_13 = xorg.xcbproto.overrideAttrs (old: { version = "1.13"; nativeBuildInputs = (old.nativeBuildInputs or []) ++ [ python311 ]; @@ -82,11 +81,6 @@ in stdenv.mkDerivation rec { sha256 = "sha256-Eiil17cbCraXF3vY2LUy2B6eyfc1XD4JHJWZUfai+wc="; }; - vst2Sdk = fetchzip { - url = "https://web.archive.org/web/20161002042955if_/http://www.steinberg.net/sdk_downloads/vst_sdk2_4_rev2.zip"; - sha256 = "sha256-6eDJYGfuVczOTaZNUYa/dLEoCzl6Ysi1I1NrxuN2mPQ="; - }; - nativeBuildInputs = [ pkg-config bash @@ -147,15 +141,13 @@ in stdenv.mkDerivation rec { util-linux # For libuuid ladspaPlugins + vst2-sdk ]; patches = [ ./qt_paths.patch ./qwebengine_quirks.patch ./build_system_fixes.patch - # There are two other patches, which are applied with Radium's - # build system, not with Nix. Look at the last lines of - # ./build_system_fixes.patch to see that. ]; postPatch = '' @@ -164,17 +156,12 @@ in stdenv.mkDerivation rec { substituteInPlace Makefile.Qt \ --replace-fail "/usr/bin/env" "${coreutils}/bin/env" - # Next culprit: Python 2.7. Fucking janky build system. substituteInPlace bin/packages/build_python27.sh \ --replace-fail "CC=clang" "CC=${stdenv.cc}/bin/cc" \ --replace-fail "CXX=clang++" "CXX=${stdenv.cc}/bin/c++" - # This is so Faust can build with LLVM > 18. cp ${./faust_llvm_21.patch} bin/packages/faust_llvm_21.patch - # So VisualizationLibrary can build with newer CMake. cp ${./vl_lib_cmake.patch} bin/packages/vl_lib_cmake.patch - - # Fixes the desktop entry so it works nicely on GNOME. printf "StartupWMClass=radium_linux.bin" >> bin/radium.desktop ''; @@ -198,7 +185,7 @@ in stdenv.mkDerivation rec { "-I${qt5.qttools.dev}/include/QtUiTools"; RADIUM_BFD_LDFLAGS = "-L${binutils-static.lib}/lib -lbfd -lsframe"; - RADIUM_VST2SDK_PATH = "${vst2Sdk}"; + RADIUM_VST2SDK_PATH = "${vst2-sdk}"; }; qtWrapperArgs = [ @@ -248,9 +235,7 @@ in stdenv.mkDerivation rec { meta = with lib; { description = "Radium – a graphical music editor / tracker (DAW)"; homepage = "https://users.notam02.no/~kjetism/radium/"; - # Radium in itself is GPLv2. However, the ancient VST2 SDK is - # proprietary. - license = with licenses; [ gpl2 unfree ]; + license = with licenses; [ gpl2 ]; maintainers = with maintainers; [ eko5z ]; platforms = with platforms; gnu ++ linux ++ darwin; };