nixpkgs-suyu/pkgs/by-name/le/less/package.nix
Anderson Torres 78cccac71c less: 633 -> 643
- finalAttrs
- split output
- meta.mainProgram and meta.changelog

Co-authored-by: Jack Maloney <jmmaloney4@gmail.com>
2023-09-18 23:56:22 -03:00

41 lines
982 B
Nix

{ lib
, stdenv
, fetchurl
, ncurses
, pcre2
}:
stdenv.mkDerivation (finalAttrs: {
pname = "less";
version = "643";
# Only tarballs on the website are valid releases,
# other versions, e.g. git tags are considered snapshots.
src = fetchurl {
url = "https://www.greenwoodsoftware.com/less/less-${finalAttrs.version}.tar.gz";
hash = "sha256-KRG1QyyDb6CEyKLmj2zWMSNywCalj6qpiGJzHItgUug=";
};
buildInputs = [
ncurses
pcre2
];
outputs = [ "out" "man" ];
configureFlags = [
# Look for 'sysless' in /etc.
"--sysconfdir=/etc"
"--with-regex=pcre2"
];
meta = {
homepage = "https://www.greenwoodsoftware.com/less/";
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;
};
})