From f6e5f353191a1b874e0d855dedfe346a69a637db Mon Sep 17 00:00:00 2001 From: Bart Brouns Date: Sun, 26 Oct 2025 22:30:56 +0100 Subject: [PATCH] uhhyou-plugins-juce: init at 0.1.0 --- .../uh/uhhyou-plugins-juce/package.nix | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 pkgs/by-name/uh/uhhyou-plugins-juce/package.nix diff --git a/pkgs/by-name/uh/uhhyou-plugins-juce/package.nix b/pkgs/by-name/uh/uhhyou-plugins-juce/package.nix new file mode 100644 index 000000000000..71cb46c212b2 --- /dev/null +++ b/pkgs/by-name/uh/uhhyou-plugins-juce/package.nix @@ -0,0 +1,63 @@ +{ + alsa-lib, + cmake, + curl, + fetchFromGitHub, + freetype, + lib, + libGL, + libXcursor, + libXext, + libXinerama, + libXrandr, + libjack2, + pkg-config, + stdenv, +}: +stdenv.mkDerivation (finalAttrs: { + pname = "uhhyou-plugins-juce"; + version = "0.1.0"; + src = fetchFromGitHub { + owner = "ryukau"; + repo = "UhhyouPluginsJuce"; + tag = "UhhyouPluginsJuce${finalAttrs.version}"; + hash = "sha256-oHxyOTiqEwdNUKGQNjjfdRkzMa+4TYX6Vf6ZS9BTcC0="; + fetchSubmodules = true; + }; + nativeBuildInputs = [ + pkg-config + cmake + ]; + buildInputs = [ + alsa-lib + curl + freetype + libGL + libXcursor + libXext + libXinerama + libXrandr + libjack2 + ]; + + # Disable LTO to avoid optimization mismatch issues + NIX_CFLAGS_COMPILE = [ + "-fno-lto" + ]; + + installPhase = '' + runHook preInstall + + mkdir -p $out/lib/vst3 + cp -r *_artefacts/Release/VST3/*.vst3 $out/lib/vst3/ + runHook postInstall + ''; + + meta = { + homepage = "https://github.com/ryukau/UhhyouPluginsJuce"; + description = "A collection of VST3 effect plugins"; + license = [ lib.licenses.agpl3Only ]; + maintainers = with lib.maintainers; [ magnetophon ]; + platforms = lib.platforms.linux; + }; +})