From 99f1c2157fba4bfe6211a321fd0ee43199025dbf Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 26 Nov 2020 21:59:33 +0100 Subject: [PATCH] Don't zero src's lastModified if it has one --- default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/default.nix b/default.nix index c911a9a..c5d3493 100644 --- a/default.nix +++ b/default.nix @@ -89,8 +89,8 @@ let isShallow = builtins.pathExists (src + "/.git/shallow"); in - (if src ? outPath then src else tryFetchGit src) - // { lastModified = 0; lastModifiedDate = formatSecondsSinceEpoch 0; }; + { lastModified = 0; lastModifiedDate = formatSecondsSinceEpoch 0; } + // (if src ? outPath then src else tryFetchGit src); # Format number of seconds in the Unix epoch as %Y%m%d%H%M%S. formatSecondsSinceEpoch = t: