about summary refs log tree commit diff
path: root/pkgs/applications/version-management
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2022-11-16 22:58:41 +0100
committerGitHub <noreply@github.com>2022-11-16 22:58:41 +0100
commit38aa6cf2084251208747de58836b19ce50fb9d78 (patch)
treeb6f4de04cb4352c255c3bc488099208fa0063f65 /pkgs/applications/version-management
parent1d6f6c0ec656835191a2970b360fb3558c522f76 (diff)
parent626e0a13a32644d711b9a2899a9818b976a62199 (diff)
downloadnixlib-38aa6cf2084251208747de58836b19ce50fb9d78.tar
nixlib-38aa6cf2084251208747de58836b19ce50fb9d78.tar.gz
nixlib-38aa6cf2084251208747de58836b19ce50fb9d78.tar.bz2
nixlib-38aa6cf2084251208747de58836b19ce50fb9d78.tar.lz
nixlib-38aa6cf2084251208747de58836b19ce50fb9d78.tar.xz
nixlib-38aa6cf2084251208747de58836b19ce50fb9d78.tar.zst
nixlib-38aa6cf2084251208747de58836b19ce50fb9d78.zip
Merge pull request #198774 from fgaz/git-credential-keepassxc/init
Diffstat (limited to 'pkgs/applications/version-management')
-rw-r--r--pkgs/applications/version-management/git-and-tools/git-credential-keepassxc/default.nix36
1 files changed, 36 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 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 ];
+  };
+}