Files
nixpkgs/pkgs/by-name/gi/git-credential-keepassxc/package.nix
2026-05-25 20:38:06 +00:00

45 lines
1.3 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
withNotification ? false,
withYubikey ? false,
withStrictCaller ? false,
withAll ? false,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "git-credential-keepassxc";
version = "0.14.3";
src = fetchFromGitHub {
owner = "Frederick888";
repo = "git-credential-keepassxc";
rev = "v${finalAttrs.version}";
hash = "sha256-rgYwcfglyutHIZrENFlYUHFeobMoLU6BwkdsaWqDkWE=";
};
cargoHash = "sha256-zHSMbfP9ge3JYGyUI2XMGtQwQnsDPkWDnm0F3WWwfNc=";
buildFeatures =
[ ]
++ lib.optional withNotification "notification"
++ lib.optional withYubikey "yubikey"
++ lib.optional withStrictCaller "strict-caller"
++ lib.optional withAll "all";
meta = {
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 = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ fgaz ];
mainProgram = "git-credential-keepassxc";
};
})