From 626e0a13a32644d711b9a2899a9818b976a62199 Mon Sep 17 00:00:00 2001 From: Francesco Gazzetta Date: Mon, 31 Oct 2022 11:28:55 +0100 Subject: git-credential-keepassxc: init at 0.10.1 --- .../git-credential-keepassxc/default.nix | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/applications/version-management/git-and-tools/git-credential-keepassxc/default.nix (limited to 'pkgs/applications/version-management') diff --git a/pkgs/applications/version-management/git-and-tools/git-credential-keepassxc/default.nix b/pkgs/applications/version-management/git-and-tools/git-credential-keepassxc/default.nix new file mode 100644 index 000000000000..0e5ba28eebaa --- /dev/null +++ b/pkgs/applications/version-management/git-and-tools/git-credential-keepassxc/default.nix @@ -0,0 +1,36 @@ +{ lib +, stdenv +, rustPlatform +, fetchFromGitHub +, DiskArbitration +, Foundation +}: + +rustPlatform.buildRustPackage rec { + pname = "git-credential-keepassxc"; + version = "0.10.1"; + + src = fetchFromGitHub { + owner = "Frederick888"; + repo = "git-credential-keepassxc"; + rev = "v${version}"; + hash = "sha256-zVE3RQlh0SEV4iavz40YhR+MP31oLCvG54H8gqXwL/k="; + }; + + cargoHash = "sha256-H75SGbT//02I+umttnPM5BwtFkDVNxEYLf84oULEuEk="; + + 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 ]; + }; +} -- cgit 1.4.1