diff options
Diffstat (limited to 'nixpkgs/pkgs/os-specific/linux/cryptsetup/default.nix')
-rw-r--r-- | nixpkgs/pkgs/os-specific/linux/cryptsetup/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/nixpkgs/pkgs/os-specific/linux/cryptsetup/default.nix b/nixpkgs/pkgs/os-specific/linux/cryptsetup/default.nix index 5e9e6eca2694..fbff9a3363de 100644 --- a/nixpkgs/pkgs/os-specific/linux/cryptsetup/default.nix +++ b/nixpkgs/pkgs/os-specific/linux/cryptsetup/default.nix @@ -2,6 +2,9 @@ , openssl, libuuid, pkg-config, popt, nixosTests , libargon2, withInternalArgon2 ? false + # Programs enabled by default upstream are implicitly enabled unless + # manually set to false. +, programs ? {} # The release tarballs contain precomputed manpage files, so we don't need # to run asciidoctor on the man sources. By avoiding asciidoctor, we make # the bare NixOS build hash independent of changes to the ruby ecosystem, @@ -50,7 +53,7 @@ stdenv.mkDerivation rec { # support, because the path still gets included in the binary even # though it isn't used. "--with-luks2-external-tokens-path=/" - ]; + ] ++ (with lib; mapAttrsToList (flip enableFeature)) programs; nativeBuildInputs = [ pkg-config ] ++ lib.optionals rebuildMan [ asciidoctor ]; buildInputs = [ lvm2 json_c openssl libuuid popt ] ++ lib.optional (!withInternalArgon2) libargon2; |