From be8502a95cb1f806d63690f0512b76fbec82b483 Mon Sep 17 00:00:00 2001 From: Stig Palmquist Date: Wed, 9 Aug 2023 01:53:09 +0200 Subject: [PATCH] ssh-tpm-agent: init at 0.3.1 --- pkgs/by-name/ss/ssh-tpm-agent/package.nix | 34 +++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 pkgs/by-name/ss/ssh-tpm-agent/package.nix diff --git a/pkgs/by-name/ss/ssh-tpm-agent/package.nix b/pkgs/by-name/ss/ssh-tpm-agent/package.nix new file mode 100644 index 000000000000..a7335db8daa0 --- /dev/null +++ b/pkgs/by-name/ss/ssh-tpm-agent/package.nix @@ -0,0 +1,34 @@ +{ lib +, buildGo122Module +, fetchFromGitHub +, openssl +}: + +buildGo122Module rec { + pname = "ssh-tpm-agent"; + version = "0.3.1"; + + src = fetchFromGitHub { + owner = "Foxboron"; + repo = "ssh-tpm-agent"; + rev = "v${version}"; + hash = "sha256-8CGSiCOcns4cWkYWqibs6hAFRipYabKPCpkhxF4OE8w="; + }; + + proxyVendor = true; + + vendorHash = "sha256-zUAIesBeuh1zlxXcjKSNmMawZGgUr9z3NzT0XKn/YCQ="; + + buildInputs = [ + openssl + ]; + + meta = with lib; { + description = "SSH agent with support for TPM sealed keys for public key authentication"; + homepage = "https://github.com/Foxboron/ssh-agent-tpm"; + license = licenses.mit; + platforms = platforms.linux; + maintainers = with maintainers; [ sgo ]; + mainProgram = "ssh-tpm-agent"; + }; +}