about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/version-management/git-credential-1password/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/applications/version-management/git-credential-1password/default.nix')
-rw-r--r--nixpkgs/pkgs/applications/version-management/git-credential-1password/default.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/version-management/git-credential-1password/default.nix b/nixpkgs/pkgs/applications/version-management/git-credential-1password/default.nix
new file mode 100644
index 000000000000..65afd5f1c387
--- /dev/null
+++ b/nixpkgs/pkgs/applications/version-management/git-credential-1password/default.nix
@@ -0,0 +1,23 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "git-credential-1password";
+  version = "1.2.1";
+
+  src = fetchFromGitHub {
+    owner = "develerik";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-8qdUOJ0MOk/xVvp3kDuxNRo3lMEJhLeI3Fle0tuZez0=";
+  };
+
+  vendorHash = "sha256-B6BlVnUX4XLT+9EpL63Ht4S8Wo84RsmY99CL+srQfpw=";
+
+  meta = with lib; {
+    description = "A git credential helper for 1Password";
+    homepage = "https://github.com/develerik/git-credential-1password";
+    changelog = "https://github.com/develerik/git-credential-1password/releases/tag/v${version}";
+    license = licenses.isc;
+    maintainers = [ maintainers.ivankovnatsky ];
+  };
+}