From 22ba790a3ca3baca910788ce2419f09aa436cd1f Mon Sep 17 00:00:00 2001 From: Stephan Maka Date: Tue, 23 Apr 2019 21:52:14 +0200 Subject: [PATCH] artiq-manual: set $SOURCE_DATE_EPOCH to fix generated copyright date Resolves Gitea issue #5 --- artiq/default.nix | 2 +- artiq/pkgs/artiq-manual.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/artiq/default.nix b/artiq/default.nix index 51a4989..6db93a8 100644 --- a/artiq/default.nix +++ b/artiq/default.nix @@ -23,7 +23,7 @@ let }; }) {} boards; manualPackages = import ./pkgs/artiq-manual.nix { - inherit stdenv lib fetchgit python3Packages texlive texinfo; + inherit stdenv lib fetchgit git python3Packages texlive texinfo; inherit (pythonDeps) sphinxcontrib-wavedrom; }; mainPackages = rec { diff --git a/artiq/pkgs/artiq-manual.nix b/artiq/pkgs/artiq-manual.nix index 14780e9..9cce519 100644 --- a/artiq/pkgs/artiq-manual.nix +++ b/artiq/pkgs/artiq-manual.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchgit, python3Packages, texlive, texinfo, sphinxcontrib-wavedrom }: +{ stdenv, lib, fetchgit, git, python3Packages, texlive, texinfo, sphinxcontrib-wavedrom }: let artiqVersion = import ./artiq-version.nix; @@ -18,6 +18,7 @@ let src = import ./artiq-src.nix { inherit fetchgit; }; buildInputs = [ + git python3Packages.sphinx python3Packages.sphinx_rtd_theme python3Packages.sphinx-argparse sphinxcontrib-wavedrom ] ++ @@ -26,6 +27,7 @@ let preBuild = '' export VERSIONEER_OVERRIDE=${artiqVersion} + export SOURCE_DATE_EPOCH=`${git}/bin/git log -1 --format=%ct` cd doc/manual ''; makeFlags = [ target ];