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 ];