mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 10:53:11 +00:00
78cccac71c
- finalAttrs - split output - meta.mainProgram and meta.changelog Co-authored-by: Jack Maloney <jmmaloney4@gmail.com>
42 lines
982 B
Nix
42 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;
|
|
};
|
|
})
|