Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.4 KiB
Nix
56 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
installShellFiles,
|
|
perl,
|
|
testers,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "checkbashisms";
|
|
version = "2.25.10";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://debian/pool/main/d/devscripts/devscripts_${finalAttrs.version}.tar.xz";
|
|
hash = "sha256-pEzXrKV/bZbYG7j5QXjRDATZRGLt0fhdpwTDbCoKcus=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
buildPhase = ''
|
|
runHook preBuild
|
|
|
|
substituteInPlace ./scripts/checkbashisms.pl \
|
|
--replace-fail '###VERSION###' "${finalAttrs.version}"
|
|
|
|
runHook postBuild
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
installManPage scripts/checkbashisms.1
|
|
installShellCompletion --bash --name checkbashisms scripts/checkbashisms.bash_completion
|
|
install -D -m755 scripts/checkbashisms.pl $out/bin/checkbashisms
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion { package = finalAttrs.finalPackage; };
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://sourceforge.net/projects/checkbaskisms/";
|
|
changelog = "https://salsa.debian.org/debian/devscripts/-/blob/v${finalAttrs.version}/debian/changelog";
|
|
description = "Check shell scripts for non-portable syntax";
|
|
mainProgram = "checkbashisms";
|
|
license = lib.licenses.gpl2Plus;
|
|
maintainers = with lib.maintainers; [ kaction ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|