1{ fetchurl, stdenv }:
2
3stdenv.mkDerivation rec {
4 name = "mpage-2.5.6";
5 src = fetchurl {
6 url = "http://www.mesa.nl/pub/mpage/${name}.tgz";
7 sha256 = "016w9sm06sn1d2lim4p8fzl6wbmad3wigxhflsybzi7p4zy6vrjg";
8 };
9
10 patchPhase = ''
11 sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
12 '';
13
14 meta = {
15 description = "Many-to-one page printing utility";
16
17 longDescription = ''
18 Mpage reads plain text files or PostScript documents and prints
19 them on a PostScript printer with the text reduced in size so
20 that several pages appear on one sheet of paper. This is useful
21 for viewing large printouts on a small amount of paper. It uses
22 ISO 8859.1 to print 8-bit characters.
23 '';
24
25 license = "liberal"; # a non-copyleft license, see `Copyright' file
26 homepage = http://www.mesa.nl/pub/mpage/;
27 platforms = stdenv.lib.platforms.linux;
28 };
29}