diff options
author | Alexander V. Nikolaev <avn@avnik.info> | 2018-11-08 04:07:27 +0200 |
---|---|---|
committer | Alexander V. Nikolaev <avn@avnik.info> | 2018-12-03 15:35:53 +0200 |
commit | d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c (patch) | |
tree | 742a87db86c4d0d5aa7dccead3b9869e3985a20f /pkgs/applications/networking/browsers/chromium | |
parent | 7b49bd4894e7763f3c5dd2868f6813e5f81615f5 (diff) | |
download | nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.tar nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.tar.gz nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.tar.bz2 nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.tar.lz nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.tar.xz nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.tar.zst nixpkgs-d0351ad3b65b1d2aa489c8ad25eeb3617efc1a5c.zip |
chromium: fail build, if SOURCE_DATE_EPOCH not set
Also fix spacing style to conform google style
Diffstat (limited to 'pkgs/applications/networking/browsers/chromium')
-rw-r--r-- | pkgs/applications/networking/browsers/chromium/patches/no-build-timestamps.patch | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/applications/networking/browsers/chromium/patches/no-build-timestamps.patch b/pkgs/applications/networking/browsers/chromium/patches/no-build-timestamps.patch index 3234b7279f7..e06d848095c 100644 --- a/pkgs/applications/networking/browsers/chromium/patches/no-build-timestamps.patch +++ b/pkgs/applications/networking/browsers/chromium/patches/no-build-timestamps.patch @@ -1,14 +1,16 @@ --- chromium-70.0.3538.67/build/compute_build_timestamp.py.orig 2018-11-02 16:00:34.368933077 +0200 -+++ chromium-70.0.3538.67/build/compute_build_timestamp.py 2018-11-03 18:35:20.542943107 +0200 -@@ -94,6 +94,12 @@ ++++ chromium-70.0.3538.67/build/compute_build_timestamp.py 2018-11-08 04:06:21.658105129 +0200 +@@ -94,6 +94,14 @@ 'build_type', help='The type of build', choices=('official', 'default')) args = argument_parser.parse_args() + # I don't trust LASTCHANGE magic, and I definelly want something deterministic here + SOURCE_DATE_EPOCH = os.getenv("SOURCE_DATE_EPOCH", None) + if SOURCE_DATE_EPOCH is not None: -+ print SOURCE_DATE_EPOCH -+ return 0 ++ print SOURCE_DATE_EPOCH ++ return 0 ++ else: ++ raise RuntimeError("SOURCE_DATE_EPOCH not set") + # The mtime of the revision in build/util/LASTCHANGE is stored in a file # next to it. Read it, to get a deterministic time close to "now". |