diff --git a/pkgs/by-name/ch/checkbashisms/package.nix b/pkgs/by-name/ch/checkbashisms/package.nix index 1890b21d7cf1..d0f6f3e1ff69 100644 --- a/pkgs/by-name/ch/checkbashisms/package.nix +++ b/pkgs/by-name/ch/checkbashisms/package.nix @@ -8,31 +8,33 @@ }: stdenv.mkDerivation (finalAttrs: { - version = "2.23.7"; pname = "checkbashisms"; + version = "2.25.10"; src = fetchurl { url = "mirror://debian/pool/main/d/devscripts/devscripts_${finalAttrs.version}.tar.xz"; - hash = "sha256-nOnlE1Ry2GR+L/tWZV4AOR6Omap6SormBc8OH/2fNgk="; + hash = "sha256-pEzXrKV/bZbYG7j5QXjRDATZRGLt0fhdpwTDbCoKcus="; }; nativeBuildInputs = [ installShellFiles ]; + buildInputs = [ perl ]; buildPhase = '' runHook preBuild substituteInPlace ./scripts/checkbashisms.pl \ - --replace '###VERSION###' "$version" + --replace-fail '###VERSION###' "${finalAttrs.version}" runHook postBuild ''; + installPhase = '' runHook preInstall - installManPage scripts/$pname.1 - installShellCompletion --bash --name $pname scripts/$pname.bash_completion - install -D -m755 scripts/$pname.pl $out/bin/$pname + installManPage scripts/checkbashisms.1 + installShellCompletion --bash --name checkbashisms scripts/checkbashisms.bash_completion + install -D -m755 scripts/checkbashisms.pl $out/bin/checkbashisms runHook postInstall '';