nixpkgs/pkgs/tools/misc/less/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
821 B
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, ncurses
, pcre2
}:
stdenv.mkDerivation rec {
pname = "less";
2023-05-24 08:14:34 +00:00
version = "633";
# Only tarballs on the website are valid releases,
# other versions, e.g. git tags are considered snapshots.
src = fetchurl {
2022-01-20 02:22:32 +00:00
url = "https://www.greenwoodsoftware.com/less/less-${version}.tar.gz";
2023-05-24 08:14:34 +00:00
hash = "sha256-LyAdZLgouIrzbf5s/bo+CBns4uRG6+YiSBMgmq7+0E8=";
};
configureFlags = [
# Look for sysless in /etc.
"--sysconfdir=/etc"
"--with-regex=pcre2"
];
2015-04-14 11:19:44 +00:00
buildInputs = [
ncurses
pcre2
];
meta = with lib; {
2021-06-18 12:47:34 +00:00
homepage = "https://www.greenwoodsoftware.com/less/";
description = "A more advanced file pager than more";
2018-08-16 20:12:21 +00:00
platforms = platforms.unix;
2021-07-30 15:25:03 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ eelco dtzWill ];
};
}