about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ss/ssh-tpm-agent/package.nix
blob: a7335db8daa0d46ea427060d5d74a883c9339148 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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";
  };
}