Skip to content

Commit

Permalink
Don't include the version number in the nix config, for reproducibili…
Browse files Browse the repository at this point in the history
…ty. Closes #580 (#710)
  • Loading branch information
grahamc authored Nov 8, 2023
1 parent dda36c4 commit a026cc2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/action/base/create_or_merge_nix_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -409,10 +409,13 @@ impl Action for CreateOrMergeNixConfig {
new_config.push('\n');
}

new_config.push_str(&format!(
"# Generated by https://github.com/DeterminateSystems/nix-installer, version {version}.\n",
version = env!("CARGO_PKG_VERSION"),
));
new_config.push_str(
&[
"# 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() {
new_config.push_str(name);
Expand Down

0 comments on commit a026cc2

Please sign in to comment.