Don't include the version number in the nix config, for reproducibility. Closes #580 (#710)

This commit is contained in:
Graham Christensen 2023-11-08 14:00:41 -05:00 committed by GitHub
parent dda36c4a22
commit a026cc2224
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -409,10 +409,13 @@ impl Action for CreateOrMergeNixConfig {
new_config.push('\n'); new_config.push('\n');
} }
new_config.push_str(&format!( new_config.push_str(
"# Generated by https://github.com/DeterminateSystems/nix-installer, version {version}.\n", &[
version = env!("CARGO_PKG_VERSION"), "# Generated by https://github.com/DeterminateSystems/nix-installer.",
)); "# See `/nix/nix-installer --version` for the version details.",
]
.join("\n"),
);
for (name, value) in merged_nix_config.settings() { for (name, value) in merged_nix_config.settings() {
new_config.push_str(name); new_config.push_str(name);