diff --git a/pkgs/tools/security/munge/default.nix b/pkgs/tools/security/munge/default.nix index 2c242f256d3d..99d72fc7c95c 100644 --- a/pkgs/tools/security/munge/default.nix +++ b/pkgs/tools/security/munge/default.nix @@ -11,7 +11,11 @@ stdenv.mkDerivation rec { sha256 = "15h805rwcb9f89dyrkxfclzs41n3ff8x7cc1dbvs8mb0ds682c4j"; }; - nativeBuildInputs = [ autoreconfHook ]; + strictDeps = true; + nativeBuildInputs = [ + autoreconfHook + libgcrypt # provides libgcrypt.m4 + ]; buildInputs = [ libgcrypt zlib bzip2 ]; preAutoreconf = '' @@ -21,6 +25,10 @@ stdenv.mkDerivation rec { configureFlags = [ "--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; {