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;