1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00

groff, opensp: make deterministic

This commit is contained in:
Alexander Kjeldaas 2014-04-09 15:09:06 +02:00 committed by Vladimír Čunát
parent e431a3e0b5
commit 7141303c99
2 changed files with 16 additions and 0 deletions

View file

@ -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 = { meta = {
homepage = "http://www.gnu.org/software/groff/"; homepage = "http://www.gnu.org/software/groff/";
description = "GNU Troff, a typesetting package that reads plain text and produces formatted output"; description = "GNU Troff, a typesetting package that reads plain text and produces formatted output";

View file

@ -13,8 +13,16 @@ stdenv.mkDerivation {
docsrc/*.xml docsrc/*.xml
''; '';
setupHook = ./setup-hook.sh; 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 ]; buildInputs = [ xmlto docbook_xml_dtd_412 libxslt docbook_xsl ];
meta = { meta = {