forked from mirrors/nixpkgs
ensureNewerSourcesHook: fix problems with symlinks
Fixes #14043. Now symlinks themselves are touched instead of their targets.
This commit is contained in:
parent
891fd356d7
commit
ff60350eb9
|
@ -264,7 +264,7 @@ let
|
|||
postUnpackHooks+=(_ensureNewerSources)
|
||||
_ensureNewerSources() {
|
||||
'${findutils}/bin/find' "$sourceRoot" \
|
||||
'!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
|
||||
'!' -newermt '${year}-01-01' -exec touch -h -d '${year}-01-02' '{}' '+'
|
||||
}
|
||||
'');
|
||||
|
||||
|
|
Loading…
Reference in a new issue