From a5f42f7eaa09ed3874b4bfedc06b7593adc9cc28 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 21 Sep 2022 02:53:28 +0200 Subject: [PATCH] libmikmod: split out/dev/man outputs This prevents propagating many dev dependencies into non-dev dependents. --- pkgs/development/libraries/libmikmod/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/libmikmod/default.nix b/pkgs/development/libraries/libmikmod/default.nix index c7a00e7372dd..29f64116b7a8 100644 --- a/pkgs/development/libraries/libmikmod/default.nix +++ b/pkgs/development/libraries/libmikmod/default.nix @@ -18,8 +18,14 @@ in stdenv.mkDerivation rec { propagatedBuildInputs = optional stdenv.isLinux libpulseaudio; + outputs = [ "out" "dev" "man" ]; + NIX_LDFLAGS = optionalString stdenv.isLinux "-lasound"; + postInstall = '' + moveToOutput bin/libmikmod-config "$dev" + ''; + meta = with lib; { description = "A library for playing tracker music module files"; homepage = "https://mikmod.shlomifish.org/";