2023-02-08 00:56:11 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, ncurses
|
|
|
|
, pcre2
|
|
|
|
}:
|
2013-08-26 13:50:45 +01:00
|
|
|
|
2023-09-18 23:28:16 +01:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2019-06-12 05:22:15 +01:00
|
|
|
pname = "less";
|
2023-09-18 23:28:16 +01:00
|
|
|
version = "643";
|
2013-08-26 13:50:45 +01:00
|
|
|
|
2023-02-08 00:56:11 +00:00
|
|
|
# Only tarballs on the website are valid releases,
|
|
|
|
# other versions, e.g. git tags are considered snapshots.
|
2004-07-30 14:38:10 +01:00
|
|
|
src = fetchurl {
|
2023-09-18 23:28:16 +01:00
|
|
|
url = "https://www.greenwoodsoftware.com/less/less-${finalAttrs.version}.tar.gz";
|
|
|
|
hash = "sha256-KRG1QyyDb6CEyKLmj2zWMSNywCalj6qpiGJzHItgUug=";
|
2013-08-26 13:50:45 +01:00
|
|
|
};
|
|
|
|
|
2023-02-08 00:56:11 +00:00
|
|
|
buildInputs = [
|
|
|
|
ncurses
|
|
|
|
pcre2
|
|
|
|
];
|
2013-08-26 13:50:45 +01:00
|
|
|
|
2023-09-18 23:28:16 +01:00
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
# Look for 'sysless' in /etc.
|
|
|
|
"--sysconfdir=/etc"
|
|
|
|
"--with-regex=pcre2"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = {
|
2021-06-18 13:47:34 +01:00
|
|
|
homepage = "https://www.greenwoodsoftware.com/less/";
|
2023-09-18 23:28:16 +01:00
|
|
|
description = "A more advanced file pager than 'more'";
|
|
|
|
changelog = "https://www.greenwoodsoftware.com/less/news.${finalAttrs.version}.html";
|
|
|
|
license = lib.licenses.gpl3Plus;
|
|
|
|
mainProgram = "less";
|
|
|
|
maintainers = with lib.maintainers; [ eelco dtzWill ];
|
|
|
|
platforms = lib.platforms.unix;
|
2004-07-30 14:38:10 +01:00
|
|
|
};
|
2023-09-18 23:28:16 +01:00
|
|
|
})
|