depot/third_party/nixpkgs/pkgs/applications/version-management/git-credential-keepassxc/default.nix
Default email 686ce24904 Project import generated by Copybara.
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
2023-02-16 18:41:37 +01:00

36 lines
1.1 KiB
Nix

{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, DiskArbitration
, Foundation
}:
rustPlatform.buildRustPackage rec {
pname = "git-credential-keepassxc";
version = "0.12.0";
src = fetchFromGitHub {
owner = "Frederick888";
repo = "git-credential-keepassxc";
rev = "v${version}";
hash = "sha256-siVSZke+anVTaLiJVyDEKvgX+VmS0axa+4721nlgmiw=";
};
cargoHash = "sha256-QMAAKkjWgM/UiOfkNMLQxyGEYYmiSvE0Pd8fZXYyN48=";
buildInputs = lib.optionals stdenv.isDarwin [ DiskArbitration Foundation ];
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 ];
};
}