diff options
author | Tom Bereknyei <tomberek@gmail.com> | 2021-11-26 10:55:43 -0500 |
---|---|---|
committer | Tom Bereknyei <tomberek@gmail.com> | 2021-11-26 10:55:43 -0500 |
commit | 152e3cda0c3e2309b37593b06f9e113ec44f506a (patch) | |
tree | 125b53d954abc6c317eb8384511c4454d55075f9 /doc | |
parent | 55275fcc5966cfad80fb6dc77b8d8939a2f1b8e0 (diff) |
reproducibility: determinstic man page output for cores
Diffstat (limited to 'doc')
-rw-r--r-- | doc/manual/local.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/manual/local.mk b/doc/manual/local.mk index e43d9f2fb..6b232a736 100644 --- a/doc/manual/local.mk +++ b/doc/manual/local.mk @@ -12,11 +12,13 @@ man-pages := $(foreach n, \ clean-files += $(d)/*.1 $(d)/*.5 $(d)/*.8 # Provide a dummy environment for nix, so that it will not access files outside the macOS sandbox. +# Set cores to 0 because otherwise nix show-config resolves the cores based on the current machine dummy-env = env -i \ HOME=/dummy \ NIX_CONF_DIR=/dummy \ NIX_SSL_CERT_FILE=/dummy/no-ca-bundle.crt \ - NIX_STATE_DIR=/dummy + NIX_STATE_DIR=/dummy \ + NIX_CONFIG='cores = 0' nix-eval = $(dummy-env) $(bindir)/nix eval --experimental-features nix-command -I nix/corepkgs=corepkgs --store dummy:// --impure --raw |