depot/third_party/nixpkgs/pkgs/development/tools/misc/checkbashisms/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

26 lines
701 B
Nix

{ stdenv, fetchurl, perl }:
stdenv.mkDerivation rec {
version = "2.0.0.2";
pname = "checkbashisms";
src = fetchurl {
url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
};
buildInputs = [ perl ];
# The link returns directly the script. No need for unpacking
dontUnpack = 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;
};
}