nixpkgs/pkgs/tools/text/mpage/default.nix
Kevin Liu 7997c2ad4c mpage: fix urls from mesa → glu transition
Find/replace error in 0acec7e984ff38b7a296a459ba4b539a3b719c1b.
2018-06-23 20:22:51 +03:00

30 lines
902 B
Nix

{ 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/;
platforms = stdenv.lib.platforms.linux;
};
}