From af439f683086ab4b0f3311cf6870a5596241a6fa Mon Sep 17 00:00:00 2001 From: Nicolas Mattia Date: Tue, 11 Feb 2020 20:53:14 +0100 Subject: [PATCH] Make sure all local files are 'touch'ed --- build.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/build.nix b/build.nix index b786cba..2624d65 100644 --- a/build.nix +++ b/build.nix @@ -212,6 +212,10 @@ let mkdir -p target + # make sure that all source files are tagged as "recent" (since we write + # some stubs here and there) + find . -type f -exec touch {} + + for dep in $builtDependencies; do log "pre-installing dep $dep" if [ -d "$dep/target" ]; then @@ -229,16 +233,13 @@ let if [ -d "$dep/target" ]; then chmod +w -R target fi - done + done export CARGO_HOME=''${CARGO_HOME:-$PWD/.cargo-home} mkdir -p $CARGO_HOME echo "$cargoconfig" > $CARGO_HOME/config - # TODO: figure out why "1" works whereas "0" doesn't - find . -type f -exec touch --date=@1 {} + - runHook postConfigure '';