Skip to content
Merged
Changes from 1 commit
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
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