diff options
author | Sergei Trofimovich <slyich@gmail.com> | 2022-09-18 11:57:37 +0100 |
---|---|---|
committer | Sergei Trofimovich <slyich@gmail.com> | 2022-09-18 12:02:24 +0100 |
commit | 40368cccd24bfd46faf6486f883fac9070fbaed6 (patch) | |
tree | 536f43d73930061bca8ed5361669a6c0a63d1d81 | |
parent | 9c2a7cc09d66fb7ffbc9609abe4d6d1521834152 (diff) | |
download | nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.tar nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.tar.gz nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.tar.bz2 nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.tar.lz nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.tar.xz nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.tar.zst nixpkgs-40368cccd24bfd46faf6486f883fac9070fbaed6.zip |
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.
-rw-r--r-- | pkgs/applications/audio/opusfile/default.nix | 1 | ||||
-rw-r--r-- | pkgs/games/iortcw/sp.nix | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/applications/audio/opusfile/default.nix b/pkgs/applications/audio/opusfile/default.nix index a6683904cb1..f86595361b6 100644 --- a/pkgs/applications/audio/opusfile/default.nix +++ b/pkgs/applications/audio/opusfile/default.nix @@ -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 diff --git a/pkgs/games/iortcw/sp.nix b/pkgs/games/iortcw/sp.nix index d9faa177c17..ba8a4dd10bd 100644 --- a/pkgs/games/iortcw/sp.nix +++ b/pkgs/games/iortcw/sp.nix @@ -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" ]; |