zlib-ng: fix cross-compilation

gtest is compiled as a library, so it's compiled for the host system instead of the build system
This commit is contained in:
Rick van Schijndel 2023-07-05 19:40:02 +02:00
parent 4333f887a6
commit 197836af99

View file

@ -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=/"