3
0
Fork 0
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:
Sergei Trofimovich 2022-09-18 11:57:37 +01:00
parent 9c2a7cc09d
commit 40368cccd2
2 changed files with 2 additions and 1 deletions

View file

@ -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

View file

@ -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" ];