recutils: Encryption support, UUID support, Bash builtins (#351773)

This commit is contained in:
Ramses 2024-11-03 23:00:15 +01:00 committed by GitHub
commit ab272732b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 = [