2015-03-17 23:23:20 +00:00
|
|
|
{ stdenv, fetchurl, perl }:
|
|
|
|
stdenv.mkDerivation rec {
|
2018-03-30 05:27:44 +01:00
|
|
|
version = "2.18.1";
|
2017-05-14 08:15:30 +01:00
|
|
|
name = "checkbashisms-${version}";
|
2015-03-17 23:23:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-30 05:27:44 +01:00
|
|
|
url = "mirror://debian/pool/main/d/devscripts/devscripts_${version}.tar.xz";
|
|
|
|
sha256 = "1yaygfzv5jzvcbahz6sdfnzhch9mxgsrlsym2ad62nk0svsnp24n";
|
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
|
|
|
}
|