Merge pull request #217667 from szaffarano/configure-git-credential-keepassxc

Allow overriding features
This commit is contained in:
Francesco Gazzetta 2023-03-21 08:32:05 +00:00 committed by GitHub
commit 6ccb6e189d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 = ''