mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
recutils: additional feature flags
Adds feature flags to the Nix derivation that enable support for encrypted record fields and the uuid record type within the recutils executables, and builds Bash builtins for working with recfiles.
This commit is contained in:
parent
8a2cc6b286
commit
77e48f97fb
@ -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 = [
|
||||
|
Loading…
Reference in New Issue
Block a user