2020-04-24 23:36:52 +00:00
|
|
|
|
{ stdenv, fetchurl, ncurses, lessSecure ? false }:
|
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "less";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
version = "563";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
|
url = "http://www.greenwoodsoftware.com/${pname}/${pname}-${version}.tar.gz";
|
2020-12-09 12:39:15 +00:00
|
|
|
|
sha256 = "16lsvk88vwjwp5ax1wnll44wxwnzs8lb2fn90xx2si64kwmnsnyf";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ] # Look for ‘sysless’ in /etc.
|
|
|
|
|
++ stdenv.lib.optional lessSecure [ "--with-secure" ];
|
|
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
|
homepage = "http://www.greenwoodsoftware.com/less/";
|
|
|
|
|
description = "A more advanced file pager than ‘more’";
|
|
|
|
|
platforms = platforms.unix;
|
|
|
|
|
license = licenses.gpl3;
|
|
|
|
|
maintainers = with maintainers; [ eelco dtzWill ];
|
|
|
|
|
};
|
|
|
|
|
}
|