{ 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"; }; })