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:
Vladimír Čunát 2016-02-07 14:31:10 +01:00
parent 9cf445405b
commit 0d9f125925

View File

@ -263,7 +263,8 @@ let
(writeScript "ensure-newer-sources-hook.sh" ''
postUnpackHooks+=(_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' '{}' '+'
}
'');