mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 15:41:48 +00:00
Merge pull request #6868 from lancelotsix/add_checkbashisms
Add checkbashisms package
This commit is contained in:
commit
515bd937f9
32
pkgs/development/tools/misc/checkbashisms/default.nix
Normal file
32
pkgs/development/tools/misc/checkbashisms/default.nix
Normal file
@ -0,0 +1,32 @@
|
||||
{ stdenv, fetchurl, perl }:
|
||||
stdenv.mkDerivation rec {
|
||||
inherit perl;
|
||||
|
||||
name = "checkbashisms";
|
||||
version = "2.0.0.2";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/project/checkbaskisms/${version}/${name}";
|
||||
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
|
||||
};
|
||||
|
||||
meta = {
|
||||
homepage = http://sourceforge.net/projects/checkbaskisms/;
|
||||
description = "Performs basic checks on shell scripts for the presence of non portable syntax.";
|
||||
license = stdenv.lib.licenses.gpl2;
|
||||
};
|
||||
|
||||
# The link returns directly the script. No need for unpacking
|
||||
unpackPhase = "true";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
cp $src $out/bin/checkbashisms
|
||||
chmod 755 $out/bin/checkbashisms
|
||||
'';
|
||||
|
||||
# Makes sure to point to the proper perl version
|
||||
fixupPhase = ''
|
||||
sed -e "s#/usr/bin/perl#$perl/bin/perl#" -i $out/bin/checkbashisms
|
||||
'';
|
||||
}
|
@ -999,6 +999,8 @@ let
|
||||
|
||||
biosdevname = callPackage ../tools/networking/biosdevname { };
|
||||
|
||||
checkbashism = callPackage ../development/tools/misc/checkbashisms { };
|
||||
|
||||
clamav = callPackage ../tools/security/clamav { };
|
||||
|
||||
clex = callPackage ../tools/misc/clex { };
|
||||
|
Loading…
Reference in New Issue
Block a user