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

27 lines
711 B
Nix
Raw Normal View History

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