mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-12 15:47:28 +00:00
09e0cc7cc7
Homepage link "http://.../" is a permanent redirect to "https://.../" and should be updated https://repology.org/repository/nix_stable/problems
27 lines
712 B
Nix
27 lines
712 B
Nix
{ stdenv, fetchurl, perl }:
|
|
stdenv.mkDerivation rec {
|
|
version = "2.0.0.2";
|
|
name = "checkbashisms-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
|
|
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
|
|
};
|
|
|
|
buildInputs = [ perl ];
|
|
|
|
# The link returns directly the script. No need for unpacking
|
|
unpackPhase = "true";
|
|
|
|
installPhase = ''
|
|
install -D -m755 $src $out/bin/checkbashisms
|
|
'';
|
|
|
|
meta = {
|
|
homepage = https://sourceforge.net/projects/checkbaskisms/;
|
|
description = "Check shell scripts for non-portable syntax";
|
|
license = stdenv.lib.licenses.gpl2;
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|