diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2022-11-16 22:58:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 22:58:41 +0100 |
commit | 38aa6cf2084251208747de58836b19ce50fb9d78 (patch) | |
tree | b6f4de04cb4352c255c3bc488099208fa0063f65 | |
parent | 1d6f6c0ec656835191a2970b360fb3558c522f76 (diff) | |
parent | 626e0a13a32644d711b9a2899a9818b976a62199 (diff) |
Merge pull request #198774 from fgaz/git-credential-keepassxc/init
-rw-r--r-- | pkgs/applications/version-management/git-and-tools/git-credential-keepassxc/default.nix | 36 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 4 |
2 files changed, 40 insertions, 0 deletions
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 0000000000000..0e5ba28eebaac --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 06ba4adcb3308..9a756970de6d7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7081,6 +7081,10 @@ with pkgs; git-credential-1password = callPackage ../applications/version-management/git-and-tools/git-credential-1password { }; + git-credential-keepassxc = callPackage ../applications/version-management/git-and-tools/git-credential-keepassxc { + inherit (darwin.apple_sdk.frameworks) DiskArbitration Foundation; + }; + git-crecord = callPackage ../applications/version-management/git-crecord { }; git-crypt = callPackage ../applications/version-management/git-and-tools/git-crypt { }; |