checkbashisms: 2.0.0.2 -> 2.21.1 (#119754)
Co-authored-by: Dmitry Bogatov <git#v1@kaction.cc>
This commit is contained in:
parent
0f2e71aaed
commit
ef107ba439
@ -1,26 +1,39 @@
|
|||||||
{ lib, stdenv, fetchurl, perl }:
|
{ lib, stdenv, fetchurl, perl, installShellFiles }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
version = "2.0.0.2";
|
version = "2.21.1";
|
||||||
pname = "checkbashisms";
|
pname = "checkbashisms";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
|
url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.xz";
|
||||||
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
|
hash = "sha256-1ZbIiUrFd38uMVLy7YayLLm5RrmcovsA++JTb8PbTFI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
# The link returns directly the script. No need for unpacking
|
buildPhase = ''
|
||||||
dontUnpack = true;
|
runHook preBuild
|
||||||
|
|
||||||
|
substituteInPlace ./scripts/checkbashisms.pl \
|
||||||
|
--replace '###VERSION###' "$version"
|
||||||
|
|
||||||
|
runHook postBuild
|
||||||
|
'';
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -D -m755 $src $out/bin/checkbashisms
|
runHook preInstall
|
||||||
|
|
||||||
|
installManPage scripts/$pname.1
|
||||||
|
installShellCompletion --bash --name $pname scripts/$pname.bash_completion
|
||||||
|
install -D -m755 scripts/$pname.pl $out/bin/$pname
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "https://sourceforge.net/projects/checkbaskisms/";
|
homepage = "https://sourceforge.net/projects/checkbaskisms/";
|
||||||
description = "Check shell scripts for non-portable syntax";
|
description = "Check shell scripts for non-portable syntax";
|
||||||
license = lib.licenses.gpl2;
|
license = lib.licenses.gpl2Plus;
|
||||||
|
maintainers = with lib.maintainers; [ kaction ];
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user