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
  • Loading branch information
grahamc committed Nov 8, 2023
1 parent dda36c4 commit d5fb9b7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 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,11 @@ 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 d5fb9b7

Please sign in to comment.