@@ -0,0 +1,35 @@
1+{ stdenv, fetchFromGitHub, perl }:
3+stdenv.mkDerivation rec {
4+ name = "lesspipe-${version}";
7+ buildInputs = [ perl ];
8+ preConfigure = "patchShebangs .";
10+ src = fetchFromGitHub {
14+ sha256 = "0vb7bpap8vy003ha10hc7hxl17y47sgdnrjpihgqxkn8k0bfqbbq";
17+ meta = with stdenv.lib; {
18+ description = "A preprocessor for less";
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.
30+ homepage = https://github.com/wofr06/lesspipe;
31+ platforms = platforms.all;
32+ license = licenses.gpl2;
33+ maintainers = [ maintainers.martijnvermaat ];