From 40368cccd24bfd46faf6486f883fac9070fbaed6 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 18 Sep 2022 11:57:37 +0100 Subject: [PATCH] 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. --- pkgs/applications/audio/opusfile/default.nix | 1 + pkgs/games/iortcw/sp.nix | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/audio/opusfile/default.nix b/pkgs/applications/audio/opusfile/default.nix index a6683904cb1d..f86595361b65 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 d9faa177c17d..ba8a4dd10bd3 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" ];