Skip to content

Commit deb3d08

Browse files
author
doyougnu
committed
copyright: repair SOURCE_DATE_EPOCH from nix
- fixes: haskellfoundation#58 ...again
1 parent 3b1ca38 commit deb3d08

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SPHINXOPTS ?=
77
SPHINXBUILD ?= sphinx-build
88
SOURCEDIR = .
99
BUILDDIR = _build
10-
# SOURCE_DATE_EPOCH = $(shell git log -1 --format=%ct)
10+
SOURCE_DATE_EPOCH = $(shell git log -1 --format=%ct)
1111

1212
# Put it first so that "make" without argument is like "make help".
1313
help:

hoh.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ pkgs.stdenv.mkDerivation {
3131
src = ./.;
3232
propagatedBuildInputs = pythonInputs ++ nonPythonInputs;
3333

34+
preBuild = ''
35+
SOURCE_DATE_EPOCH="$(${pkgs.coreutils}/bin/date '+%s')"
36+
'';
37+
3438
buildPhase = ''
3539
runHook preBuild
3640
make ${target} SPHINXOPTS="-W"

src/Measurement_Observation/Measurement_Libs/weigh.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ useful to confirm that a data structure or function has the memory performance
1010
you anticipate it to have at *runtime*. ``Weigh`` is easy to setup and
1111
non-invasive; requiring no changes to source code. Thus, it is a good *initial*
1212
tool to use before trying more advanced methods with higher setup costs, such as
13-
:ref:`Cachegrind <Cachegrind>`.
13+
:ref:`Cachegrind <Cachegrind Chapter>`.
1414

1515

1616
Requirements

0 commit comments

Comments
 (0)