diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2023-07-05 19:40:02 +0200 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2023-07-05 19:40:02 +0200 |
commit | 197836af99d0c78346be2735cb3226c3e9ca30c4 (patch) | |
tree | 5be982ff7c8c5585af360c04bbd9446d89adebee /pkgs/development/libraries/zlib-ng | |
parent | 4333f887a60ffe2d884d6f85e42433f6380f334d (diff) |
zlib-ng: fix cross-compilation
gtest is compiled as a library, so it's compiled for the host system instead of the build system
Diffstat (limited to 'pkgs/development/libraries/zlib-ng')
-rw-r--r-- | pkgs/development/libraries/zlib-ng/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/zlib-ng/default.nix b/pkgs/development/libraries/zlib-ng/default.nix index ac314b754513e..456ef7c7a1bf4 100644 --- a/pkgs/development/libraries/zlib-ng/default.nix +++ b/pkgs/development/libraries/zlib-ng/default.nix @@ -23,7 +23,11 @@ stdenv.mkDerivation rec { outputs = [ "out" "dev" "bin" ]; - nativeBuildInputs = [ cmake pkg-config gtest ]; + strictDeps = true; + + nativeBuildInputs = [ cmake pkg-config ]; + + buildInputs = [ gtest ]; cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=/" |