From 9858da4185cd83b6a00bbf737d6dd8ad8ac84a76 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sun, 13 Feb 2022 11:02:44 -0800 Subject: [PATCH] lv2: add dev output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also put programs there since those are just development tools, that would bring unnecessary Python dependency into out’s runtime closure. --- pkgs/development/libraries/audio/lv2/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/audio/lv2/default.nix b/pkgs/development/libraries/audio/lv2/default.nix index 8acb4342372..d0ef2e65c59 100644 --- a/pkgs/development/libraries/audio/lv2/default.nix +++ b/pkgs/development/libraries/audio/lv2/default.nix @@ -12,6 +12,8 @@ stdenv.mkDerivation rec { pname = "lv2"; version = "1.18.2"; + outputs = [ "out" "dev" ]; + src = fetchurl { url = "https://lv2plug.in/spec/${pname}-${version}.tar.bz2"; sha256 = "sha256-TokfvHRMBYVb6136gugisUkX3Wbpj4K4Iw29HHqy4F4="; @@ -27,7 +29,10 @@ stdenv.mkDerivation rec { python3 ]; - wafConfigureFlags = lib.optionals stdenv.isDarwin [ + wafConfigureFlags = [ + "--includedir=${placeholder "dev"}/include" + "--bindir=${placeholder "dev"}/bin" + ] ++ lib.optionals stdenv.isDarwin [ "--lv2dir=${placeholder "out"}/lib/lv2" ];