mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
checkbashisms: 2.23.7 -> 2.25.10
Changelog: https://salsa.debian.org/debian/devscripts/-/blob/v2.25.10/debian/changelog
This commit is contained in:
parent
dba7688e8e
commit
43926e7472
1 changed files with 8 additions and 6 deletions
|
@ -8,31 +8,33 @@
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation (finalAttrs: {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
version = "2.23.7";
|
|
||||||
pname = "checkbashisms";
|
pname = "checkbashisms";
|
||||||
|
version = "2.25.10";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://debian/pool/main/d/devscripts/devscripts_${finalAttrs.version}.tar.xz";
|
url = "mirror://debian/pool/main/d/devscripts/devscripts_${finalAttrs.version}.tar.xz";
|
||||||
hash = "sha256-nOnlE1Ry2GR+L/tWZV4AOR6Omap6SormBc8OH/2fNgk=";
|
hash = "sha256-pEzXrKV/bZbYG7j5QXjRDATZRGLt0fhdpwTDbCoKcus=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
buildInputs = [ perl ];
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
substituteInPlace ./scripts/checkbashisms.pl \
|
substituteInPlace ./scripts/checkbashisms.pl \
|
||||||
--replace '###VERSION###' "$version"
|
--replace-fail '###VERSION###' "${finalAttrs.version}"
|
||||||
|
|
||||||
runHook postBuild
|
runHook postBuild
|
||||||
'';
|
'';
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
installManPage scripts/$pname.1
|
installManPage scripts/checkbashisms.1
|
||||||
installShellCompletion --bash --name $pname scripts/$pname.bash_completion
|
installShellCompletion --bash --name checkbashisms scripts/checkbashisms.bash_completion
|
||||||
install -D -m755 scripts/$pname.pl $out/bin/$pname
|
install -D -m755 scripts/checkbashisms.pl $out/bin/checkbashisms
|
||||||
|
|
||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue