From 9228c0a2d2f69b2f6c31fd2f2d326571dc191775 Mon Sep 17 00:00:00 2001 From: Daniel Olsen Date: Sun, 12 Jun 2022 09:28:52 +0200 Subject: [PATCH] libjxl: Move brotli and libhwy to propagatedBuildInputs pkg-config dependencies aren't specified using store paths so they need to be propagated manually --- pkgs/development/libraries/libjxl/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libjxl/default.nix b/pkgs/development/libraries/libjxl/default.nix index c7ff1d0c5512..2017fc66d703 100644 --- a/pkgs/development/libraries/libjxl/default.nix +++ b/pkgs/development/libraries/libjxl/default.nix @@ -78,10 +78,8 @@ stdenv.mkDerivation rec { # conclusively in its README or otherwise; they can best be determined # by checking the CMake output for "Could NOT find". buildInputs = [ - brotli giflib gperftools # provides `libtcmalloc` - libhwy libjpeg libpng libwebp @@ -89,6 +87,11 @@ stdenv.mkDerivation rec { zlib ]; + propagatedBuildInputs = [ + brotli + libhwy + ]; + cmakeFlags = [ # For C dependencies like brotli, which are dynamically linked, # we want to use the system libraries, so that we don't have to care about