biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / applications / version-management / git-credential-keepassxc / default.nix
blob2d3e511fcbfdf97981a8d2c2c9cf6db454128131
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , DiskArbitration
6 , Foundation
7 , withNotification ? false
8 , withYubikey ? false
9 , withStrictCaller ? false
10 , withAll ? false
13 rustPlatform.buildRustPackage rec {
14   pname = "git-credential-keepassxc";
15   version = "0.14.0";
17   src = fetchFromGitHub {
18     owner = "Frederick888";
19     repo = "git-credential-keepassxc";
20     rev = "v${version}";
21     hash = "sha256-AvnnzLiDQEdfAHPns8ufhdiPPn9d23AnI8Aq2DQS+To=";
22   };
24   cargoHash = "sha256-c2YucWs0UzyWDKWS5KebT3ps+XvWzlI0+ziJ8JX6oiQ=";
26   buildInputs = lib.optionals stdenv.isDarwin [ DiskArbitration Foundation ];
28   buildFeatures = []
29     ++ lib.optional withNotification "notification"
30     ++ lib.optional withYubikey "yubikey"
31     ++ lib.optional withStrictCaller "strict-caller"
32     ++ lib.optional withAll "all";
34   meta = with lib; {
35     description = "Helper that allows Git (and shell scripts) to use KeePassXC as credential store";
36     longDescription = ''
37       git-credential-keepassxc is a Git credential helper that allows Git
38       (and shell scripts) to get/store logins from/to KeePassXC.
39       It communicates with KeePassXC using keepassxc-protocol which is
40       originally designed for browser extensions.
41     '';
42     homepage = "https://github.com/Frederick888/git-credential-keepassxc";
43     license = licenses.gpl3Plus;
44     maintainers = with maintainers; [ fgaz ];
45     mainProgram = "git-credential-keepassxc";
46   };