about summary refs log tree commit diff
path: root/pkgs/development/libraries/smpeg
diff options
context:
space:
mode:
authorPierre Bourdon <delroth@gmail.com>2022-09-21 04:01:13 +0200
committerPierre Bourdon <delroth@gmail.com>2022-09-21 04:01:13 +0200
commit0e3de4e73d47961e7b922885f898173bc6c2f6f4 (patch)
tree42f2fc8774527d7da88caf356bb29effbb09937d /pkgs/development/libraries/smpeg
parent94320898c52db0f7ded36011b6d7d6ff15651b84 (diff)
smpeg: split out/dev outputs
Prevents a dependency to SDL.dev from being propagated in the main
output via bin/smpeg-config.
Diffstat (limited to 'pkgs/development/libraries/smpeg')
-rw-r--r--pkgs/development/libraries/smpeg/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/development/libraries/smpeg/default.nix b/pkgs/development/libraries/smpeg/default.nix
index 8b54cb37a32c2..5c72d653278d0 100644
--- a/pkgs/development/libraries/smpeg/default.nix
+++ b/pkgs/development/libraries/smpeg/default.nix
@@ -24,6 +24,8 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ SDL gtk2 libGLU libGL ];
 
+  outputs = [ "out" "dev" ];
+
   preConfigure = ''
     touch NEWS AUTHORS ChangeLog
     sh autogen.sh
@@ -35,9 +37,11 @@ stdenv.mkDerivation rec {
     -e 's,"SDL_audio.h",<SDL/SDL_audio.h>,' \
     -e 's,"SDL_thread.h",<SDL/SDL_thread.h>,' \
     -e 's,"SDL_types.h",<SDL/SDL_types.h>,' \
-      $out/include/smpeg/*.h
+      $dev/include/smpeg/*.h
+
+    moveToOutput bin/smpeg-config "$dev"
 
-    wrapProgram $out/bin/smpeg-config \
+    wrapProgram $dev/bin/smpeg-config \
       --prefix PATH ":" "${pkg-config}/bin" \
       --prefix PKG_CONFIG_PATH ":" "${lib.getDev SDL}/lib/pkgconfig"
   '';