Unverified Commit ab272732 authored by Ramses's avatar Ramses Committed by GitHub
Browse files

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

parents 181c598f 77e48f97
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
@@ -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 = [