2015-03-17 23:23:20 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
2018-04-26 16:32:18 +01:00
|
|
|
version = "2.0.0.2";
|
2017-05-14 08:15:30 +01:00
|
|
|
name = "checkbashisms-${version}";
|
2015-03-17 23:23:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-04-26 16:32:18 +01:00
|
|
|
url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
|
|
|
|
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
|
2015-03-17 23:23:20 +00:00
|
|
|
};
|
|
|
|
|
2017-05-14 08:15:30 +01:00
|
|
|
buildInputs = [ perl ];
|
|
|
|
|
2015-03-17 23:23:20 +00:00
|
|
|
# The link returns directly the script. No need for unpacking
|
|
|
|
unpackPhase = "true";
|
|
|
|
|
|
|
|
installPhase = ''
|
2017-05-14 08:15:30 +01:00
|
|
|
install -D -m755 $src $out/bin/checkbashisms
|
2015-03-17 23:23:20 +00:00
|
|
|
'';
|
2016-08-02 17:19:16 +01:00
|
|
|
|
|
|
|
meta = {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://sourceforge.net/projects/checkbaskisms/;
|
2016-08-02 17:19:16 +01:00
|
|
|
description = "Check shell scripts for non-portable syntax";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2017-05-14 08:15:30 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-08-02 17:19:16 +01:00
|
|
|
};
|
2015-03-17 23:23:20 +00:00
|
|
|
}
|