2021-01-15 22:18:51 +00:00
|
|
|
|
{ lib, stdenv, fetchurl, ncurses, lessSecure ? false }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
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.
|
2021-01-15 22:18:51 +00:00
|
|
|
|
++ lib.optional lessSecure [ "--with-secure" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|