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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
1,002 B
Nix
Raw Normal View History

2021-01-15 10:19:50 +01:00
{ fetchurl, lib, stdenv }:
stdenv.mkDerivation rec {
pname = "mpage";
2023-09-01 13:52:25 +02:00
version = "2.5.8";
src = fetchurl {
url = "https://www.mesa.nl/pub/mpage/mpage-${version}.tgz";
2023-09-01 13:52:25 +02:00
sha256 = "sha256-I1HpHSV5SzWN9mGPF6cBOijTUOwgQI/gb4Ej3EZz/pM=";
};
2021-03-03 13:03:07 +01:00
postPatch = ''
sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
2021-03-03 13:03:07 +01: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 13:03:07 +01:00
platforms = lib.platforms.all;
};
}