From fbe7b754e53909d20e6d7256e8c2b62e857339df Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Mon, 11 Apr 2022 19:09:07 -0400 Subject: [PATCH] execline: 2.8.2.0 -> 2.8.3.0 In addition, install separately-maintained manpages new output "man". --- pkgs/tools/misc/execline/default.nix | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/misc/execline/default.nix b/pkgs/tools/misc/execline/default.nix index e1dd404a357e..cf3641f1d21b 100644 --- a/pkgs/tools/misc/execline/default.nix +++ b/pkgs/tools/misc/execline/default.nix @@ -1,15 +1,29 @@ -{ skawarePackages }: +{ fetchFromGitHub, skawarePackages }: with skawarePackages; +let + version = "2.8.3.0"; + + # Maintainer of manpages uses following versioning scheme: for every + # upstream $version he tags manpages release as ${version}.1, and, + # in case of extra fixes to manpages, new tags in form ${version}.2, + # ${version}.3 and so on are created. + manpages = fetchFromGitHub { + owner = "flexibeast"; + repo = "execline-man-pages"; + rev = "v${version}.2"; + sha256 = "0fzv5as81aqgl8llbz8c5bk5n56iyh4g70r54wmj71rh2d1pihk5"; + }; + +in buildPackage { + inherit version; -buildPackage { pname = "execline"; - version = "2.8.2.0"; - sha256 = "0h9kb3cx8dw05md6smvs56i4lr8g5n3ljaxy5vj4zs86yc3pdprg"; + sha256 = "105dnkw1y6lz0ibqy5b4jarq31y40k7ymhl77i9f10jcb76vwp93"; description = "A small scripting language, to be used in place of a shell in non-interactive scripts"; - outputs = [ "bin" "lib" "dev" "doc" "out" ]; + outputs = [ "bin" "man" "lib" "dev" "doc" "out" ]; # TODO: nsss support configureFlags = [ @@ -48,5 +62,7 @@ buildPackage { -o "$bin/bin/execlineb" \ ${./execlineb-wrapper.c} \ -lskarnet + mkdir -p $man/share/ + cp -vr ${manpages}/man* $man/share ''; }