ensureNewerSourcesHook: use absolute path for find
pythonPackages.psutil has busybox in build inputs and its `find` apparently doesn't support the -newermt option.
This commit is contained in:
parent
9cf445405b
commit
0d9f125925
@ -263,7 +263,8 @@ let
|
|||||||
(writeScript "ensure-newer-sources-hook.sh" ''
|
(writeScript "ensure-newer-sources-hook.sh" ''
|
||||||
postUnpackHooks+=(_ensureNewerSources)
|
postUnpackHooks+=(_ensureNewerSources)
|
||||||
_ensureNewerSources() {
|
_ensureNewerSources() {
|
||||||
find "$sourceRoot" '!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
|
'${findutils}/bin/find' "$sourceRoot" \
|
||||||
|
'!' -newermt '${year}-01-01' -exec touch -d '${year}-01-02' '{}' '+'
|
||||||
}
|
}
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user