summary refs log tree commit diff
path: root/pkgs/tools/text/mpage/default.nix
blob: c147b3ea301f8165d5ba7aa4bc9ffbd43f8a539d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ fetchurl, stdenv }:

stdenv.mkDerivation rec {
  name = "mpage-2.5.6";
  src = fetchurl {
    url = "http://www.mesa.nl/pub/mpage/${name}.tgz";
    sha256 = "016w9sm06sn1d2lim4p8fzl6wbmad3wigxhflsybzi7p4zy6vrjg";
  };

  patchPhase = ''
    sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
  '';

  meta = {
    description = "Many-to-one page printing utility";

    longDescription = ''
      Mpage reads plain text files or PostScript documents and prints
      them on a PostScript printer with the text reduced in size so
      that several pages appear on one sheet of paper.  This is useful
      for viewing large printouts on a small amount of paper.  It uses
      ISO 8859.1 to print 8-bit characters.
    '';

    license = "liberal";  # a non-copyleft license, see `Copyright' file
    homepage = http://www.mesa.nl/pub/mpage/;
  };
}