13 stdenv.mkDerivation (finalAttrs: {
17 # `less` is provided by the following sources:
19 # - GitHub: https://github.com/gwsw/less/
20 # The releases recommended for general consumption are only those from
21 # homepage, and only those not marked as beta.
23 url = "https://www.greenwoodsoftware.com/less/less-${finalAttrs.version}.tar.gz";
24 hash = "sha256-KBn1VWTYbVQqu+yv2C/2HoGaPuyWf6o2zT5o8VlqRLg=";
29 # Fix configure parameters --with-secure=no and --without-secure.
30 url = "https://github.com/gwsw/less/commit/8fff6c56bfc833528b31ebdaee871f65fbe342b1.patch";
31 hash = "sha256-XV5XufivNWWLGeIpaP04YQPWcxIUKYYEINdT+eEx+WA=";
38 # Need `autoreconfHook` since we patch `configure.ac`.
39 # TODO: Remove the `configure.ac` patch and `autoreconfHook` next release
55 "--sysconfdir=/etc" # Look for 'sysless' in /etc
56 (lib.withFeatureAs true "regex" "pcre2")
57 (lib.withFeature withSecure "secure")
63 homepage = "https://www.greenwoodsoftware.com/less/";
64 description = "More advanced file pager than 'more'";
65 changelog = "https://www.greenwoodsoftware.com/less/news.${finalAttrs.version}.html";
66 license = lib.licenses.gpl3Plus;
68 maintainers = with lib.maintainers; [
72 platforms = lib.platforms.unix;