Merge pull request #177294 from NickCao/munge-cross

munge: fix cross compilation
This commit is contained in:
Rick van Schijndel 2022-06-16 23:04:35 +02:00 committed by GitHub
commit 1c243620ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,7 +11,11 @@ stdenv.mkDerivation rec {
sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j"; sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j";
}; };
nativeBuildInputs = [ autoreconfHook ]; strictDeps = true;
nativeBuildInputs = [
autoreconfHook
libgcrypt # provides libgcrypt.m4
];
buildInputs = [ libgcrypt zlib bzip2 ]; buildInputs = [ libgcrypt zlib bzip2 ];
preAutoreconf = '' preAutoreconf = ''
@ -21,6 +25,10 @@ stdenv.mkDerivation rec {
configureFlags = [ configureFlags = [
"--localstatedir=/var" "--localstatedir=/var"
"--with-libgcrypt-prefix=${libgcrypt.dev}"
# workaround for cross compilation: https://github.com/dun/munge/issues/103
"ac_cv_file__dev_spx=no"
"x_ac_cv_check_fifo_recvfd=no"
]; ];
meta = with lib; { meta = with lib; {