Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 25487a3ad82b
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ed71691a810d
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Nov 29, 2018

  1. set-source-date-epoch-to-latest: fix warning

    If there was no older file than $NIX_BUILD_TOP this would result in a
    warning, e.g. with nix-info.
    
    ```
    /nix/store/15kgcm8hnd99p7plqzx7p4lcr2jni4df-set-source-date-epoch-to-latest.sh: line 13: [: : integer expression expected
    ```
    globin committed Nov 29, 2018
    Copy the full SHA
    34faed5 View commit details
  2. Merge pull request #51217 from mayflower/source-date-epoch-fix-warning

    set-source-date-epoch-to-latest: fix warning
    Ericson2314 authored Nov 29, 2018
    Copy the full SHA
    ed71691 View commit details
Showing with 1 addition and 1 deletion.
  1. +1 −1 pkgs/build-support/setup-hooks/set-source-date-epoch-to-latest.sh
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ updateSourceDateEpoch() {
local newestFile="${res[1]}"

# Update $SOURCE_DATE_EPOCH if the most recent file we found is newer.
if [ "$time" -gt "$SOURCE_DATE_EPOCH" ]; then
if [ "${time:-0}" -gt "$SOURCE_DATE_EPOCH" ]; then
echo "setting SOURCE_DATE_EPOCH to timestamp $time of file $newestFile"
export SOURCE_DATE_EPOCH="$time"