Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.2 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
openssh,
openssl,
}:
buildGoModule rec {
pname = "ssh-tpm-agent";
version = "0.8.0";
src = fetchFromGitHub {
owner = "Foxboron";
repo = "ssh-tpm-agent";
tag = "v${version}";
hash = "sha256-CSxZctiQ/d4gzCUtfx9Oetb8s0XpHf3MPH/H0XaaVgg=";
};
proxyVendor = true;
vendorHash = "sha256-84ZB1B+RczJS08UToCWvvVfWrD62IQxy0XoBwn+wBkc=";
buildInputs = [
openssl
];
nativeCheckInputs = [
openssh
];
# disable broken tests, see https://github.com/NixOS/nixpkgs/pull/394097
preCheck = ''
rm cmd/scripts_test.go
substituteInPlace internal/keyring/keyring_test.go --replace-fail ENOKEY ENOENT
substituteInPlace internal/keyring/threadkeyring_test.go --replace-fail ENOKEY ENOENT
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "SSH agent with support for TPM sealed keys for public key authentication";
homepage = "https://github.com/Foxboron/ssh-tpm-agent";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ sgo ];
mainProgram = "ssh-tpm-agent";
};
}