diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2017-09-24 20:56:11 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2017-09-24 20:56:11 +0200 |
commit | cb9a846762a9dd0983e3eed0832c20f2e7b049f1 (patch) | |
tree | 1aa4b778435b1f68b78837320b3ad0d8791a4462 /pkgs/build-support | |
parent | 2a1c656c54aad3ac0634cb5d6eadd733c8cdbbe3 (diff) | |
parent | 73282c8cc2cdc866c26fd280d6ba061e6a2870f5 (diff) | |
download | nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.tar nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.tar.gz nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.tar.bz2 nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.tar.lz nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.tar.xz nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.tar.zst nixlib-cb9a846762a9dd0983e3eed0832c20f2e7b049f1.zip |
Merge older staging
Hydra looks OK; not finished yet but already has more successes than on master.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh b/pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh index 6bf9a65b35af..84e40cd0514f 100644 --- a/pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh +++ b/pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh @@ -4,7 +4,8 @@ updateSourceDateEpoch() { # Get the last modification time of all regular files, sort them, # and get the most recent. Maybe we should use # https://github.com/0-wiz-0/findnewest here. - local -a res=($(find "$path" -type f -not -newer "$NIX_BUILD_TOP/.." -printf '%T@ %p\0' | sort -n --zero-terminated | tail -n1 --zero-terminated)) + local -a res=($(find "$path" -type f -not -newer "$NIX_BUILD_TOP/.." -printf '%T@ %p\0' \ + | sort -n --zero-terminated | tail -n1 --zero-terminated | head -c -1)) local time="${res[0]//\.[0-9]*/}" # remove the fraction part local newestFile="${res[1]}" |