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