2021-01-15 09:19:50 +00:00
|
|
|
{ fetchurl, lib, stdenv }:
|
2008-04-11 13:22:35 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-08-02 09:12:13 +00:00
|
|
|
pname = "mpage";
|
|
|
|
version = "2.5.7";
|
|
|
|
|
2008-04-11 13:22:35 +00:00
|
|
|
src = fetchurl {
|
2021-08-02 09:12:13 +00:00
|
|
|
url = "https://www.mesa.nl/pub/mpage/mpage-${version}.tgz";
|
2018-06-30 18:49:42 +00:00
|
|
|
sha256 = "1zn37r5xrvjgjbw2bdkc0r7s6q8b1krmcryzj0yf0dyxbx79rasi";
|
2008-04-11 13:22:35 +00:00
|
|
|
};
|
|
|
|
|
2021-03-03 12:03:07 +00:00
|
|
|
postPatch = ''
|
2008-04-11 13:22:35 +00:00
|
|
|
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'
|
2008-04-11 13:22:35 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "Many-to-one page printing utility";
|
2008-04-11 13:22:35 +00:00
|
|
|
|
|
|
|
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
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.mesa.nl/pub/mpage/";
|
2021-03-03 12:03:07 +00:00
|
|
|
platforms = lib.platforms.all;
|
2008-04-11 13:22:35 +00:00
|
|
|
};
|
|
|
|
}
|