mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
{ fetchurl, lib, stdenv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mpage";
|
|
version = "2.5.8";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.mesa.nl/pub/mpage/mpage-${version}.tgz";
|
|
sha256 = "sha256-I1HpHSV5SzWN9mGPF6cBOijTUOwgQI/gb4Ej3EZz/pM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i "Makefile" -e "s|^ *PREFIX *=.*$|PREFIX = $out|g"
|
|
substituteInPlace Makefile --replace 'gcc' '${stdenv.cc.targetPrefix}cc'
|
|
'';
|
|
|
|
meta = {
|
|
description = "Many-to-one page printing utility";
|
|
mainProgram = "mpage";
|
|
|
|
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 = lib.platforms.all;
|
|
};
|
|
}
|