2023-02-09 11:40:11 +00:00
|
|
|
|
{ lib
|
|
|
|
|
, stdenv
|
|
|
|
|
, fetchurl
|
|
|
|
|
, ncurses
|
|
|
|
|
, pcre2
|
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
pname = "less";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
version = "633";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
|
# Only tarballs on the website are valid releases,
|
|
|
|
|
# other versions, e.g. git tags are considered snapshots.
|
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";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
hash = "sha256-LyAdZLgouIrzbf5s/bo+CBns4uRG6+YiSBMgmq7+0E8=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
};
|
|
|
|
|
|
2023-02-09 11:40:11 +00:00
|
|
|
|
configureFlags = [
|
|
|
|
|
# Look for ‘sysless’ in /etc.
|
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
|
"--with-regex=pcre2"
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
|
ncurses
|
|
|
|
|
pcre2
|
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|