summary refs log tree commit diff
path: root/pkgs/tools/text/a2ps
diff options
context:
space:
mode:
authorBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-01-01 19:11:42 +0100
committerBenno Fünfstück <benno.fuenfstueck@gmail.com>2016-01-01 19:11:58 +0100
commitaaeba728b35e0f8e6441051fbc623f1b3b1a9d7b (patch)
treec96bca4df59dcec5ccb3a8c7aba7e8966a4f0560 /pkgs/tools/text/a2ps
parent502c791611175c9a3cd660561668264783e7e689 (diff)
downloadnixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.tar
nixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.tar.gz
nixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.tar.bz2
nixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.tar.lz
nixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.tar.xz
nixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.tar.zst
nixlib-aaeba728b35e0f8e6441051fbc623f1b3b1a9d7b.zip
a2ps: new package
Diffstat (limited to 'pkgs/tools/text/a2ps')
-rw-r--r--pkgs/tools/text/a2ps/default.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/tools/text/a2ps/default.nix b/pkgs/tools/text/a2ps/default.nix
new file mode 100644
index 000000000000..5580cb6e8314
--- /dev/null
+++ b/pkgs/tools/text/a2ps/default.nix
@@ -0,0 +1,31 @@
+{ stdenv, fetchurl, libpaper, gperf, file }:
+
+stdenv.mkDerivation rec {
+  name = "a2ps-4.14";
+  src = fetchurl {
+    url = "mirror://gnu/a2ps/${name}.tar.gz";
+    sha256 = "195k78m1h03m961qn7jr120z815iyb93gwi159p1p9348lyqvbpk";
+  };
+
+  postPatch = ''
+    substituteInPlace afm/make_fonts_map.sh --replace "/bin/rm" "rm"
+    substituteInPlace tests/defs.in --replace "/bin/rm" "rm"
+  '';
+
+  buildInputs = [ libpaper gperf file ];
+
+  meta = with stdenv.lib; {
+    description = "An Anyithing to PostScript converter and pretty-printer";
+    longDescription = ''
+      GNU a2ps converts files into PostScript for printing or viewing. It uses a nice default format,
+      usually two pages on each physical page, borders surrounding pages, headers with useful information
+      (page number, printing date, file name or supplied header), line numbering, symbol substitution as
+      well as pretty printing for a wide range of programming languages.
+    '';
+    homepage = http://www.inf.enst.fr/~demaille/a2ps/index.html;
+    license = gpl3Plus;
+    maintainers = [ maintainers.bennofs ];
+    platforms = platforms.linux;
+
+  };
+}