nixpkgs/pkgs/development/tools/misc/checkbashisms/default.nix

27 lines
701 B
Nix
Raw Normal View History

2015-03-17 23:23:20 +00:00
{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
version = "2.0.0.2";
pname = "checkbashisms";
2015-03-17 23:23:20 +00:00
src = fetchurl {
url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
2015-03-17 23:23:20 +00:00
};
buildInputs = [ perl ];
2015-03-17 23:23:20 +00:00
# The link returns directly the script. No need for unpacking
2019-06-19 16:45:34 +01:00
dontUnpack = true;
2015-03-17 23:23:20 +00:00
installPhase = ''
install -D -m755 $src $out/bin/checkbashisms
2015-03-17 23:23:20 +00:00
'';
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;
};
2015-03-17 23:23:20 +00:00
}