Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/nix-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ jobs:

- name: Install Nix
uses: DeterminateSystems/nix-installer-action@9a59e15a74545c99a626ba594edcd0d02189e670 # main at 2026-03-20T13:57:34Z
with:
summarize: false

- name: Build
run: nix build .#docker-image
13 changes: 13 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,19 @@
# Live DNSSEC tests are gated behind DNSSEC_LIVE_TEST env var
# and skip themselves in the sandbox; all other tests use fixtures
doCheck = true;

# The Go stdlib in nixpkgs is patched to reference nix store paths
# for mailcap (mime types), iana-etc (/etc/services), and tzdata.
# This server does not use mime.TypeByExtension, net.LookupPort,
# or time.LoadLocation, so strip these references to keep the
# runtime closure (and Docker image) minimal.
nativeBuildInputs = [ pkgs.removeReferencesTo ];
postInstall = ''
remove-references-to -t ${pkgs.mailcap} $out/bin/attestation-server
remove-references-to -t ${pkgs.iana-etc} $out/bin/attestation-server
remove-references-to -t ${pkgs.tzdata} $out/bin/attestation-server
'';
disallowedReferences = [ pkgs.mailcap pkgs.iana-etc pkgs.tzdata ];
};
default = attestation-server;

Expand Down
Loading