Allow overriding features

This commit is contained in:
Sebastián Zaffarano 2023-02-22 12:09:43 +01:00
parent 988cc958c5
commit 87ffe8dd88
No known key found for this signature in database
GPG key ID: 5358B137FE5BE376

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