From 10dec0a250a26030f4e49b36fe5162de93daffdb Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 10 Sep 2026 21:07:38 +0200 Subject: [PATCH] libhwy: fix CMake config --- pkgs/by-name/li/libhwy/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/li/libhwy/package.nix b/pkgs/by-name/li/libhwy/package.nix index b507bebd61ec..c458e1092ee8 100644 --- a/pkgs/by-name/li/libhwy/package.nix +++ b/pkgs/by-name/li/libhwy/package.nix @@ -82,6 +82,11 @@ stdenv.mkDerivation (finalAttrs: { install -Dm644 hwy/tests/*.h -t $out/include/hwy/tests/ ''; + postFixup = '' + substituteInPlace $dev/lib/cmake/hwy/hwy-config-release.cmake \ + --replace-fail "\''${_IMPORT_PREFIX}/lib" "$out/lib" + ''; + # hydra's darwin machines run into https://github.com/libjxl/libjxl/issues/408 doCheck = !stdenv.hostPlatform.isDarwin;