File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,8 @@ stdenv.mkDerivation (finalAttrs: {
2626 hash = "sha256-ShAdinvBA7guVBhjqTelBRiUzyo5KqHcawlQS9kXtqs=" ;
2727 } ;
2828
29+ patches = [ ./reproducible-build-date.patch ] ;
30+
2931 postPatch = ''
3032 substituteInPlace \
3133 sbr/arglist.c \
Original file line number Diff line number Diff line change 1+ Index: config/version.sh
2+ ===================================================================
3+ --- a/config/version.sh
4+ +++ b/config/version.sh
5+ @@ -11,9 +11,9 @@
6+ git=" `git -C $srcdir describe --long --dirty`"
7+ else
8+ git=
9+ fi
10+ - date="`TZ=GMT0 date +'%Y-%m-%d %T'` +0000"
11+ + date="$(date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d)"
12+
13+ cat <<E
14+ char *version_str = "nmh-$version$git built $date on $host";
15+ char *version_num = "nmh-$version";
You can’t perform that action at this time.
0 commit comments