git.iko.soy/typeable/nixpkgs
on master help sign in
lesspipe: init at 1.82

lesspipe.sh is a preprocessor for less.

commit3ada292a67d9e6f8ac948ce186bee12099ece3f0 authorMartijn Vermaat <martijn@vermaat.name> dateMon 9 May 2016, 16:59 (11 years ago) parent53643f5
3 files changed+38
lib/maintainers.nix+1 pkgs/tools/misc/lesspipe/default.nix+35 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -221,6 +221,7 @@
221221 marcweber = "Marc Weber <marco-oweber@gmx.de>";
222222 markus1189 = "Markus Hauck <markus1189@gmail.com>";
223223 markWot = "Markus Wotringer <markus@wotringer.de>";
224+ martijnvermaat = "Martijn Vermaat <martijn@vermaat.name>";
224225 matejc = "Matej Cotman <cotman.matej@gmail.com>";
225226 mathnerd314 = "Mathnerd314 <mathnerd314.gph+hs@gmail.com>";
226227 matthiasbeyer = "Matthias Beyer <mail@beyermatthias.de>";
pkgs/tools/misc/lesspipe/default.nixnew file+35
@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, perl }:
2+
3+stdenv.mkDerivation rec {
4+ name = "lesspipe-${version}";
5+ version = "1.82";
6+
7+ buildInputs = [ perl ];
8+ preConfigure = "patchShebangs .";
9+
10+ src = fetchFromGitHub {
11+ owner = "wofr06";
12+ repo = "lesspipe";
13+ rev = version;
14+ sha256 = "0vb7bpap8vy003ha10hc7hxl17y47sgdnrjpihgqxkn8k0bfqbbq";
15+ };
16+
17+ meta = with stdenv.lib; {
18+ description = "A preprocessor for less";
19+ longDescription = ''
20+ Usually lesspipe.sh is called as an input filter to less. With the help
21+ of that filter less will display the uncompressed contents of compressed
22+ (gzip, bzip2, compress, rar, 7-zip, lzip, xz or lzma) files. For files
23+ containing archives and directories, a table of contents will be
24+ displayed (e.g tar, ar, rar, jar, rpm and deb formats). Other supported
25+ formats include nroff, pdf, ps, dvi, shared library, MS word, OASIS
26+ (e.g. Openoffice), NetCDF, html, mp3, jpg, png, iso images, MacOSX bom,
27+ plist and archive formats, perl storable data and gpg encrypted files.
28+ This does require additional helper programs being installed.
29+ '';
30+ homepage = https://github.com/wofr06/lesspipe;
31+ platforms = platforms.all;
32+ license = licenses.gpl2;
33+ maintainers = [ maintainers.martijnvermaat ];
34+ };
35+}
pkgs/top-level/all-packages.nix+2
@@ -2141,6 +2141,8 @@ in
21412141
21422142 less = callPackage ../tools/misc/less { };
21432143
2144+ lesspipe = callPackage ../tools/misc/lesspipe { };
2145+
21442146 liquidsoap = callPackage ../tools/audio/liquidsoap/full.nix { };
21452147
21462148 lnav = callPackage ../tools/misc/lnav { };