mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 07:46:09 +01:00
Allow overriding features
This commit is contained in:
parent
988cc958c5
commit
87ffe8dd88
1 changed files with 10 additions and 0 deletions
|
@ -4,6 +4,10 @@
|
|||
, fetchFromGitHub
|
||||
, DiskArbitration
|
||||
, Foundation
|
||||
, withNotification ? false
|
||||
, withYubikey ? false
|
||||
, withStrictCaller ? false
|
||||
, withAll ? false
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -21,6 +25,12 @@ rustPlatform.buildRustPackage rec {
|
|||
|
||||
buildInputs = lib.optionals stdenv.isDarwin [ DiskArbitration Foundation ];
|
||||
|
||||
buildFeatures = []
|
||||
++ lib.optional withNotification "notification"
|
||||
++ lib.optional withYubikey "yubikey"
|
||||
++ lib.optional withStrictCaller "strict-caller"
|
||||
++ lib.optional withAll "all";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Helper that allows Git (and shell scripts) to use KeePassXC as credential store";
|
||||
longDescription = ''
|
||||
|
|
Loading…
Reference in a new issue