less: 633 -> 643

- finalAttrs
- split output
- meta.mainProgram and meta.changelog

Co-authored-by: Jack Maloney <jmmaloney4@gmail.com>

+20 -16
+20 -16
pkgs/by-name/le/less/package.nix
··· 5 5 , pcre2 6 6 }: 7 7 8 - stdenv.mkDerivation rec { 8 + stdenv.mkDerivation (finalAttrs: { 9 9 pname = "less"; 10 - version = "633"; 10 + version = "643"; 11 11 12 12 # Only tarballs on the website are valid releases, 13 13 # other versions, e.g. git tags are considered snapshots. 14 14 src = fetchurl { 15 - url = "https://www.greenwoodsoftware.com/less/less-${version}.tar.gz"; 16 - hash = "sha256-LyAdZLgouIrzbf5s/bo+CBns4uRG6+YiSBMgmq7+0E8="; 15 + url = "https://www.greenwoodsoftware.com/less/less-${finalAttrs.version}.tar.gz"; 16 + hash = "sha256-KRG1QyyDb6CEyKLmj2zWMSNywCalj6qpiGJzHItgUug="; 17 17 }; 18 18 19 - configureFlags = [ 20 - # Look for ‘sysless’ in /etc. 21 - "--sysconfdir=/etc" 22 - "--with-regex=pcre2" 23 - ]; 24 - 25 19 buildInputs = [ 26 20 ncurses 27 21 pcre2 28 22 ]; 29 23 30 - meta = with lib; { 24 + outputs = [ "out" "man" ]; 25 + 26 + configureFlags = [ 27 + # Look for 'sysless' in /etc. 28 + "--sysconfdir=/etc" 29 + "--with-regex=pcre2" 30 + ]; 31 + 32 + meta = { 31 33 homepage = "https://www.greenwoodsoftware.com/less/"; 32 - description = "A more advanced file pager than ‘more’"; 33 - platforms = platforms.unix; 34 - license = licenses.gpl3Plus; 35 - maintainers = with maintainers; [ eelco dtzWill ]; 34 + description = "A more advanced file pager than 'more'"; 35 + changelog = "https://www.greenwoodsoftware.com/less/news.${finalAttrs.version}.html"; 36 + license = lib.licenses.gpl3Plus; 37 + mainProgram = "less"; 38 + maintainers = with lib.maintainers; [ eelco dtzWill ]; 39 + platforms = lib.platforms.unix; 36 40 }; 37 - } 41 + })