summary refs log tree commit diff
diff options
context:
space:
mode:
authorMartijn Vermaat <martijn@vermaat.name>2016-05-09 16:59:26 +0200
committerMartijn Vermaat <martijn@vermaat.name>2016-05-10 22:21:42 +0200
commit3ada292a67d9e6f8ac948ce186bee12099ece3f0 (patch)
tree58f3f8ba11153772a654baac9f509d77c1b2a6bf
parent53643f532a5eeaa19ea9800683c3853b7255d862 (diff)
downloadnixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.tar
nixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.tar.gz
nixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.tar.bz2
nixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.tar.lz
nixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.tar.xz
nixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.tar.zst
nixpkgs-3ada292a67d9e6f8ac948ce186bee12099ece3f0.zip
lesspipe: init at 1.82
lesspipe.sh is a preprocessor for less.
-rw-r--r--lib/maintainers.nix1
-rw-r--r--pkgs/tools/misc/lesspipe/default.nix35
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 38 insertions, 0 deletions
diff --git a/lib/maintainers.nix b/lib/maintainers.nix
index 19f9300fe5d..b4cdd768320 100644
--- a/lib/maintainers.nix
+++ b/lib/maintainers.nix
@@ -221,6 +221,7 @@
   marcweber = "Marc Weber <marco-oweber@gmx.de>";
   markus1189 = "Markus Hauck <markus1189@gmail.com>";
   markWot = "Markus Wotringer <markus@wotringer.de>";
+  martijnvermaat = "Martijn Vermaat <martijn@vermaat.name>";
   matejc = "Matej Cotman <cotman.matej@gmail.com>";
   mathnerd314 = "Mathnerd314 <mathnerd314.gph+hs@gmail.com>";
   matthiasbeyer = "Matthias Beyer <mail@beyermatthias.de>";
diff --git a/pkgs/tools/misc/lesspipe/default.nix b/pkgs/tools/misc/lesspipe/default.nix
new file mode 100644
index 00000000000..46324f912c5
--- /dev/null
+++ b/pkgs/tools/misc/lesspipe/default.nix
@@ -0,0 +1,35 @@
+{ stdenv, fetchFromGitHub, perl }:
+
+stdenv.mkDerivation rec {
+  name = "lesspipe-${version}";
+  version = "1.82";
+
+  buildInputs = [ perl ];
+  preConfigure = "patchShebangs .";
+
+  src = fetchFromGitHub {
+    owner = "wofr06";
+    repo = "lesspipe";
+    rev = version;
+    sha256 = "0vb7bpap8vy003ha10hc7hxl17y47sgdnrjpihgqxkn8k0bfqbbq";
+  };
+
+  meta = with stdenv.lib; {
+    description = "A preprocessor for less";
+    longDescription = ''
+      Usually lesspipe.sh is called as an input filter to less. With the help
+      of that filter less will display the uncompressed contents of compressed
+      (gzip, bzip2, compress, rar, 7-zip, lzip, xz or lzma) files. For files
+      containing archives and directories, a table of contents will be
+      displayed (e.g tar, ar, rar, jar, rpm and deb formats). Other supported
+      formats include nroff, pdf, ps, dvi, shared library, MS word, OASIS
+      (e.g. Openoffice), NetCDF, html, mp3, jpg, png, iso images, MacOSX bom,
+      plist and archive formats, perl storable data and gpg encrypted files.
+      This does require additional helper programs being installed.
+    '';
+    homepage = https://github.com/wofr06/lesspipe;
+    platforms = platforms.all;
+    license = licenses.gpl2;
+    maintainers = [ maintainers.martijnvermaat ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index edb0e489a77..fabfecfdd59 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2141,6 +2141,8 @@ in
 
   less = callPackage ../tools/misc/less { };
 
+  lesspipe = callPackage ../tools/misc/lesspipe { };
+
   liquidsoap = callPackage ../tools/audio/liquidsoap/full.nix { };
 
   lnav = callPackage ../tools/misc/lnav { };