forked from mirrors/nixpkgs
opusfile: add "dev" output
`opusfile` is a a popular game dependency via `SDL2_mixer`. Split it's `dev` output to separate store path to reduce runtime closure size. While at it amend games's include paths.
This commit is contained in:
parent
9c2a7cc09d
commit
40368cccd2
|
@ -11,6 +11,7 @@ stdenv.mkDerivation rec {
|
|||
nativeBuildInputs = [ pkg-config ];
|
||||
buildInputs = [ openssl libogg ];
|
||||
propagatedBuildInputs = [ libopus ];
|
||||
outputs = [ "out" "dev" ];
|
||||
patches = [ ./include-multistream.patch ]
|
||||
# fixes problem with openssl 1.1 dependency
|
||||
# see https://github.com/xiph/opusfile/issues/13
|
||||
|
|
|
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
|
|||
|
||||
NIX_CFLAGS_COMPILE = [
|
||||
"-I${SDL2.dev}/include/SDL2"
|
||||
"-I${opusfile}/include/opus"
|
||||
"-I${opusfile.dev}/include/opus"
|
||||
];
|
||||
NIX_CFLAGS_LINK = [ "-lSDL2" ];
|
||||
|
||||
|
|
Loading…
Reference in a new issue