diff options
Diffstat (limited to 'pkgs/tools/text/groff/default.nix')
-rw-r--r-- | pkgs/tools/text/groff/default.nix | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/pkgs/tools/text/groff/default.nix b/pkgs/tools/text/groff/default.nix index 97cc3c61173..90beca862c0 100644 --- a/pkgs/tools/text/groff/default.nix +++ b/pkgs/tools/text/groff/default.nix @@ -1,11 +1,11 @@ { stdenv, fetchurl, ghostscript, perl, groff }: stdenv.mkDerivation rec { - name = "groff-1.22.2"; + name = "groff-1.22.3"; src = fetchurl { url = "mirror://gnu/groff/${name}.tar.gz"; - sha256 = "0xi07nhj5vdgax37rj25mwxzdmsz1ifx50hjgc6hqbkpqkd6821q"; + sha256 = "1998v2kcs288d3y7kfxpvl369nqi06zbbvjzafyvyl3pr7bajj1s"; }; buildInputs = [ ghostscript ]; @@ -28,11 +28,20 @@ stdenv.mkDerivation rec { ''; }; - meta = { - homepage = "http://www.gnu.org/software/groff/"; + 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 = with stdenv.lib; { + homepage = http://www.gnu.org/software/groff/; description = "GNU Troff, a typesetting package that reads plain text and produces formatted output"; - license = stdenv.lib.licenses.gpl3Plus; - platforms = stdenv.lib.platforms.all; + license = licenses.gpl3Plus; + platforms = platforms.all; + maintainers = with maintainers; [ pSub ]; longDescription = '' groff is the GNU implementation of troff, a document formatting |