about summary refs log tree commit diff
path: root/pkgs/tools/security/ssh-to-age
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2021-08-29 14:07:24 +0200
committerJörg Thalheim <joerg@thalheim.io>2021-08-29 18:46:12 +0200
commit345fdc44b2ef818b57a61aaca0a89a2fc55c465c (patch)
tree39421ed4890cea587fbb2057ec2eecb5e91bf2de /pkgs/tools/security/ssh-to-age
parent89a906346dc21e833d7e41eafbfe2a666217333e (diff)
ssh-to-age: init at 1.0.1
Diffstat (limited to 'pkgs/tools/security/ssh-to-age')
-rw-r--r--pkgs/tools/security/ssh-to-age/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/security/ssh-to-age/default.nix b/pkgs/tools/security/ssh-to-age/default.nix
new file mode 100644
index 0000000000000..7342c34ee3679
--- /dev/null
+++ b/pkgs/tools/security/ssh-to-age/default.nix
@@ -0,0 +1,31 @@
+{ lib, fetchFromGitHub, buildGoModule }:
+
+buildGoModule rec {
+  pname = "ssh-to-age";
+  version = "1.0.1";
+
+  src = fetchFromGitHub {
+    owner = "Mic92";
+    repo = "ssh-to-age";
+    rev = version;
+    sha256 = "sha256-ccwCHu6RlWqMnt5nBy54bVEzfE9/3PEL4C5LnYTtnwU=";
+  };
+
+  vendorSha256 = "sha256-jiFPcdWnAk54RJv4mHB3A+5tqKzqitfsiRXYZLa3Gu0=";
+
+  checkPhase = ''
+    runHook preCheck
+    go test ./...
+    runHook postCheck
+  '';
+
+  doCheck = true;
+
+  meta = with lib; {
+    description = "Convert ssh private keys in ed25519 format to age keys";
+    homepage = "https://github.com/Mic92/ssh-to-age";
+    license = licenses.mit;
+    maintainers = with maintainers; [ mic92 ];
+    platforms = platforms.unix;
+  };
+}