about summary refs log tree commit diff
path: root/pkgs/tools/networking/ssh-key-confirmer
diff options
context:
space:
mode:
authorAlvar Penning <post@0x21.biz>2021-09-23 22:47:00 +0200
committerAlvar Penning <post@0x21.biz>2021-10-02 14:08:38 +0200
commitc48c82533b4701e9e40c30339a0bcf96cef3f239 (patch)
tree7279d6d0a9e0c0c489d705fb5a644e8f1ef0cad4 /pkgs/tools/networking/ssh-key-confirmer
parent89e9200aa224ae7175a265eba9bdad6f08315cf6 (diff)
ssh-key-confirmer: init at 0.1
Diffstat (limited to 'pkgs/tools/networking/ssh-key-confirmer')
-rw-r--r--pkgs/tools/networking/ssh-key-confirmer/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/tools/networking/ssh-key-confirmer/default.nix b/pkgs/tools/networking/ssh-key-confirmer/default.nix
new file mode 100644
index 0000000000000..c7a90aee52360
--- /dev/null
+++ b/pkgs/tools/networking/ssh-key-confirmer/default.nix
@@ -0,0 +1,24 @@
+{ lib, fetchFromGitHub, buildGoModule }:
+
+buildGoModule rec {
+  pname = "ssh-key-confirmer";
+  version = "0.1";
+
+  src = fetchFromGitHub {
+    owner = "benjojo";
+    repo = "ssh-key-confirmer";
+    rev = "v${version}";
+    sha256 = "18whj9ds3rpjj5b71lbadi37ps99v13nnmkn3vq28x6cqfdy6w09";
+  };
+
+  vendorSha256 = "0v9yw6v8fj6dqgbkks4pnmvxx9b7jqdy7bn7ywddk396sbsxjiqa";
+
+  ldflags = [ "-s" "-w" ];
+
+  meta = with lib; {
+    description = "Test ssh login key acceptance without having the private key";
+    homepage = "https://github.com/benjojo/ssh-key-confirmer";
+    license = licenses.mit;
+    maintainers = with maintainers; [ oxzi ];
+  };
+}