tinfoil-cli: init at 0.0.11 (#391189)

This commit is contained in:
Philip Taron
2025-04-30 13:45:13 -07:00
committed by GitHub
+38
View File
@@ -0,0 +1,38 @@
{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
}:
buildGoModule (finalAttrs: {
pname = "tinfoil-cli";
version = "0.0.11";
src = fetchFromGitHub {
owner = "tinfoilsh";
repo = "tinfoil-cli";
tag = "v${finalAttrs.version}";
hash = "sha256-zHtF6tKptru3OFU5w93pT9B+mbVxqFB++OMleHk7Q5Q=";
};
vendorHash = "sha256-EN6IYOSYuSlKpQKcdKvPjFa9A51uwqSzHNuwlrzYsfI=";
# 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";
};
})