mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
smpeg2: add "dev" and "man" outputs
`smpeg2` is an `SDL2_mixer` runtime dependency, a popular game dependency. Split it's `dev` and `man` outputs to separate store path to reduce runtime closure size.
This commit is contained in:
parent
9c2a7cc09d
commit
7fe991a9b0
@ -24,12 +24,15 @@ stdenv.mkDerivation rec {
|
||||
buildInputs = [ SDL2 ]
|
||||
++ lib.optional stdenv.isDarwin darwin.libobjc;
|
||||
|
||||
outputs = [ "out" "dev" "man" ];
|
||||
|
||||
preConfigure = ''
|
||||
sh autogen.sh
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram $out/bin/smpeg2-config \
|
||||
moveToOutput bin/smpeg2-config "$dev"
|
||||
wrapProgram $dev/bin/smpeg2-config \
|
||||
--prefix PATH ":" "${pkg-config}/bin" \
|
||||
--prefix PKG_CONFIG_PATH ":" "${SDL2.dev}/lib/pkgconfig"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user