nixpkgs/pkgs/tools/text/mpage/default.nix

31 lines
976 B
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
name = "mpage-2.5.7";
src = fetchurl {
url = "http://www.mesa.nl/pub/mpage/${name}.tgz";
sha256 = "1zn37r5xrvjgjbw2bdkc0r7s6q8b1krmcryzj0yf0dyxbx79rasi";
};
2021-03-03 12:03:07 +00:00
postPatch = ''
sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
2021-03-03 12:03:07 +00:00
substituteInPlace Makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
'';
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/";
2021-03-03 12:03:07 +00:00
platforms = lib.platforms.all;
};
}