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-01-22 01:22:15 +00:00
|
|
|
|
version = "600";
|
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";
|
|
|
|
|
sha256 = "sha256-ZjPWqis8xxevssIFd4x8QsRiD2Ox1oLz0SyYrwvnTSA=";
|
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; {
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|