forked from mirrors/nixpkgs
Merge pull request #217667 from szaffarano/configure-git-credential-keepassxc
Allow overriding features
This commit is contained in:
commit
6ccb6e189d
|
@ -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