From c48c82533b4701e9e40c30339a0bcf96cef3f239 Mon Sep 17 00:00:00 2001 From: Alvar Penning Date: Thu, 23 Sep 2021 22:47:00 +0200 Subject: [PATCH] ssh-key-confirmer: init at 0.1 --- .../networking/ssh-key-confirmer/default.nix | 24 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/tools/networking/ssh-key-confirmer/default.nix 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 000000000000..c7a90aee5236 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6faddfc54371..9e06f11722d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1828,6 +1828,8 @@ with pkgs; ssh-import-id = python3Packages.callPackage ../tools/admin/ssh-import-id { }; + ssh-key-confirmer = callPackage ../tools/networking/ssh-key-confirmer { }; + sshchecker = callPackage ../tools/security/sshchecker { }; titaniumenv = callPackage ../development/mobile/titaniumenv { };