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";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
version = "608";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
2022-01-22 01:22:15 +00:00
|
|
|
|
url = "https://www.greenwoodsoftware.com/less/less-${version}.tar.gz";
|
2022-09-09 14:08:57 +00:00
|
|
|
|
sha256 = "02f2d9d6hyf03va28ip620gjc6rf4aikmdyk47h7frqj18pbx6m6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
configureFlags = [ "--sysconfdir=/etc" ] # Look for ‘sysless’ in /etc.
|
2022-10-30 15:09:59 +00:00
|
|
|
|
++ lib.optionals lessSecure [ "--with-secure" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
|
homepage = "https://www.greenwoodsoftware.com/less/";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
description = "A more advanced file pager than ‘more’";
|
|
|
|
|
platforms = platforms.unix;
|
2021-08-05 21:33:18 +00:00
|
|
|
|
license = licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
maintainers = with maintainers; [ eelco dtzWill ];
|
|
|
|
|
};
|
|
|
|
|
}
|