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
39 lines
1.0 KiB
Nix
39 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
}:
|
|
|
|
buildGoModule (finalAttrs: {
|
|
pname = "tinfoil-cli";
|
|
version = "0.1.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tinfoilsh";
|
|
repo = "tinfoil-cli";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-yOFlQxMRxrdC1w8r8D9b0qrwGLjEflgcvLX5Q8ntMJY=";
|
|
};
|
|
|
|
vendorHash = "sha256-L4wdnxm5fOtGymIZfr/YYTDnXpREgZmEthcZV1ploI4=";
|
|
|
|
# The attestation test requires internet access
|
|
checkFlags = [ "-skip=TestAttestationVerifySEV" ];
|
|
|
|
postInstall = ''
|
|
mv $out/bin/tinfoil-cli $out/bin/tinfoil
|
|
'';
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
description = "Command-line interface for making verified HTTP requests to Tinfoil enclaves and validating attestation documents";
|
|
homepage = "https://github.com/tinfoilsh/tinfoil-cli";
|
|
changelog = "https://github.com/tinfoilsh/tinfoil-cli/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = [ lib.maintainers.haylin ];
|
|
mainProgram = "tinfoil";
|
|
};
|
|
})
|