diff --git a/pkgs/by-name/re/recutils/package.nix b/pkgs/by-name/re/recutils/package.nix index e96375f6a0a4..61f6f60def04 100644 --- a/pkgs/by-name/re/recutils/package.nix +++ b/pkgs/by-name/re/recutils/package.nix @@ -4,6 +4,16 @@ , bc , check , curl + +, withEncryption ? true +, libgcrypt +, libgpg-error + +, withUuid ? true +, libuuid + +, withBashBuiltins ? true +, bash }: stdenv.mkDerivation rec { @@ -17,8 +27,20 @@ stdenv.mkDerivation rec { hardeningDisable = lib.optional stdenv.cc.isClang "format"; + configureFlags = + lib.optionals withBashBuiltins [ + "--with-bash-headers=${bash.dev}/include/bash" + ]; + buildInputs = [ curl + ] ++ lib.optionals withEncryption [ + libgpg-error.dev + libgcrypt.dev + ] ++ lib.optionals withUuid [ + libuuid + ] ++ lib.optionals withBashBuiltins [ + bash.dev ]; nativeCheckInputs = [