smpeg: split out/dev outputs

Prevents a dependency to SDL.dev from being propagated in the main
output via bin/smpeg-config.
This commit is contained in:
Pierre Bourdon 2022-09-21 04:01:13 +02:00
parent 94320898c5
commit 0e3de4e73d
No known key found for this signature in database
GPG Key ID: 6FB80DCD84DA0F1C

View File

@ -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
wrapProgram $out/bin/smpeg-config \
moveToOutput bin/smpeg-config "$dev"
wrapProgram $dev/bin/smpeg-config \
--prefix PATH ":" "${pkg-config}/bin" \
--prefix PKG_CONFIG_PATH ":" "${lib.getDev SDL}/lib/pkgconfig"
'';