git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #15338 from martijnvermaat/lesspipe-sh

lesspipe: init at 1.82

commit2d080f2f8f3054a15ba0057e01529e1787e64666 authorJoachim Fasting <joachifm@users.noreply.github.com> dateWed 11 May 2016, 06:40 (11 years ago) parent43634d43ada292
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
@@ -2142,6 +2142,8 @@ in
21422142
21432143 less = callPackage ../tools/misc/less { };
21442144
2145+ lesspipe = callPackage ../tools/misc/lesspipe { };
2146+
21452147 liquidsoap = callPackage ../tools/audio/liquidsoap/full.nix { };
21462148
21472149 lnav = callPackage ../tools/misc/lnav { };