diff options
author | Rick van Schijndel <rol3517@gmail.com> | 2021-07-16 08:53:41 +0200 |
---|---|---|
committer | Rick van Schijndel <rol3517@gmail.com> | 2021-07-16 08:53:41 +0200 |
commit | 982d06127188c2bc6c669b2a8982c46187c910f3 (patch) | |
tree | bd9dd7e23456a1c701205d4c58343b07c3b193f8 /pkgs/tools/typesetting/asciidoc | |
parent | 2e36e8ad73cfcdbb759e52190f52fc02eff6af0d (diff) | |
download | nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.tar nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.tar.gz nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.tar.bz2 nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.tar.lz nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.tar.xz nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.tar.zst nixpkgs-982d06127188c2bc6c669b2a8982c46187c910f3.zip |
asciidoc: enable tests with doCheck
Diffstat (limited to 'pkgs/tools/typesetting/asciidoc')
-rw-r--r-- | pkgs/tools/typesetting/asciidoc/default.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/tools/typesetting/asciidoc/default.nix b/pkgs/tools/typesetting/asciidoc/default.nix index cc45455eeaf..0618a55df44 100644 --- a/pkgs/tools/typesetting/asciidoc/default.nix +++ b/pkgs/tools/typesetting/asciidoc/default.nix @@ -290,6 +290,12 @@ stdenv.mkDerivation rec { # --replace "python3 -m asciidoc.a2x" "python3 -m asciidoc.a2x -a revdate=01/01/1980" substituteInPlace Makefile.in \ --replace "python3 a2x.py" "python3 a2x.py -a revdate=01/01/1980" + + # Fix tests + for f in $(grep -R --files-with-matches "2002-11-25") ; do + substituteInPlace $f --replace "2002-11-25" "1970-01-01" + substituteInPlace $f --replace "00:37:42" "00:00:01" + done '' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) '' # We want to use asciidoc from the build platform to build the documentation. substituteInPlace Makefile.in \ @@ -299,6 +305,9 @@ stdenv.mkDerivation rec { preInstall = "mkdir -p $out/etc/vim"; makeFlags = lib.optional stdenv.isCygwin "DESTDIR=/."; + checkInputs = [ sourceHighlight ]; + doCheck = true; + meta = with lib; { description = "Text-based document generation system"; longDescription = '' |