From d5fb9b7e9387b74aff896040f2f38d9a58a75d9a Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Wed, 8 Nov 2023 13:39:06 -0500 Subject: [PATCH] Don't include the version number in the nix config, for reproducibility. Closes #580 --- src/action/base/create_or_merge_nix_config.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/action/base/create_or_merge_nix_config.rs b/src/action/base/create_or_merge_nix_config.rs index 250ac0be1..f5bd4ba89 100644 --- a/src/action/base/create_or_merge_nix_config.rs +++ b/src/action/base/create_or_merge_nix_config.rs @@ -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);