From faacc88c93086982e2c95708176863f415e03810 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 11 Jun 2022 21:58:26 +0800 Subject: [PATCH] munge: fix cross compilation --- pkgs/tools/security/munge/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; {