blob: 3a85cff455b8136bae7e27b4777c41591b2e9318 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, DiskArbitration
, Foundation
, withNotification ? false
, withYubikey ? false
, withStrictCaller ? false
, withAll ? false
}:
rustPlatform.buildRustPackage rec {
pname = "git-credential-keepassxc";
version = "0.14.1";
src = fetchFromGitHub {
owner = "Frederick888";
repo = "git-credential-keepassxc";
rev = "v${version}";
hash = "sha256-qxNzWuuIoK9BJLVcWtrER+MyA5cyd03xAwGljh8DZC4=";
};
cargoHash = "sha256-jBUp0jes4wtr8cmqceEBb6noqGkJUHbIfYgWOw5KMF4=";
buildInputs = lib.optionals stdenv.hostPlatform.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 = ''
git-credential-keepassxc is a Git credential helper that allows Git
(and shell scripts) to get/store logins from/to KeePassXC.
It communicates with KeePassXC using keepassxc-protocol which is
originally designed for browser extensions.
'';
homepage = "https://github.com/Frederick888/git-credential-keepassxc";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ fgaz ];
mainProgram = "git-credential-keepassxc";
};
}
|