depot/third_party/nixpkgs/pkgs/tools/misc/less/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

37 lines
821 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ lib
, stdenv
, fetchurl
, ncurses
, pcre2
}:
stdenv.mkDerivation rec {
pname = "less";
version = "633";
# 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-${version}.tar.gz";
hash = "sha256-LyAdZLgouIrzbf5s/bo+CBns4uRG6+YiSBMgmq7+0E8=";
};
configureFlags = [
# Look for sysless in /etc.
"--sysconfdir=/etc"
"--with-regex=pcre2"
];
buildInputs = [
ncurses
pcre2
];
meta = with lib; {
homepage = "https://www.greenwoodsoftware.com/less/";
description = "A more advanced file pager than more";
platforms = platforms.unix;
license = licenses.gpl3Plus;
maintainers = with maintainers; [ eelco dtzWill ];
};
}