diff --git a/rust-overlay.nix b/rust-overlay.nix index 420cf70..1f196ae 100644 --- a/rust-overlay.nix +++ b/rust-overlay.nix @@ -285,6 +285,15 @@ let done ''; + # Export the manifest file as part of the nix-support files such + # that one can compute the sha256 of a manifest to freeze it for + # reproducible builds. + MANIFEST_FILE = manifest; + postInstall = '' + mkdir $out/nix-support + cp $MANIFEST_FILE $out/nix-support/manifest.toml + ''; + # Add the compiler as part of the propagated build inputs in order # to run: #