diff options
author | Alexander Kjeldaas <ak@formalprivacy.com> | 2014-04-09 15:09:06 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2014-09-13 15:06:59 +0200 |
commit | 7141303c998942f04dec761555c5944f309658d2 (patch) | |
tree | 269c92df9f6c531f5e71e7dddf2e92a5a9058743 /pkgs | |
parent | e431a3e0b592b772c81cde81be09d47b1c9b4622 (diff) |
groff, opensp: make deterministic
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/tools/text/groff/default.nix | 8 | ||||
-rw-r--r-- | pkgs/tools/text/sgml/opensp/default.nix | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix index 97cc3c611733f..cd1d719bdaf5b 100644 --- a/pkgs/tools/text/groff/default.nix +++ b/pkgs/tools/text/groff/default.nix @@ -28,6 +28,14 @@ stdenv.mkDerivation rec { ''; }; + postInstall = '' + # Remove example output with (random?) colors to + # avoid non-determinism in the output + rm $out/share/doc/${name}/examples/hdtbl/*color*ps + # Remove creation date + find $out/share/doc/${name} -type f -print0 | xargs -0 sed -i -e 's/%%CreationDate: .*//' + ''; + meta = { homepage = "http://www.gnu.org/software/groff/"; description = "GNU Troff, a typesetting package that reads plain text and produces formatted output"; diff --git a/pkgs/tools/text/sgml/opensp/default.nix b/pkgs/tools/text/sgml/opensp/default.nix index 59b9b7bc13d13..23ce8ccc5a885 100644 --- a/pkgs/tools/text/sgml/opensp/default.nix +++ b/pkgs/tools/text/sgml/opensp/default.nix @@ -13,8 +13,16 @@ stdenv.mkDerivation { docsrc/*.xml ''; + setupHook = ./setup-hook.sh; + postFixup = '' + # Remove random ids in the release notes + sed -i -e 's/href="#idm.*"//g' $out/share/doc/OpenSP/releasenotes.html + sed -i -e 's/name="idm.*"//g' $out/share/doc/OpenSP/releasenotes.html + ''; + + buildInputs = [ xmlto docbook_xml_dtd_412 libxslt docbook_xsl ]; meta = { |