checkbashisms: simplify and set platforms to unix (#25773)
- adds version to name - also adds "unix" as platform (anything with perl should work)
This commit is contained in:
parent
68f335c6cd
commit
4b06293597
|
@ -1,33 +1,26 @@
|
||||||
{ stdenv, fetchurl, perl }:
|
{ stdenv, fetchurl, perl }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
inherit perl;
|
|
||||||
|
|
||||||
name = "checkbashisms";
|
|
||||||
version = "2.0.0.2";
|
version = "2.0.0.2";
|
||||||
|
name = "checkbashisms-${version}";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "mirror://sourceforge/project/checkbaskisms/${version}/${name}";
|
url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
|
||||||
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
|
sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ perl ];
|
||||||
|
|
||||||
# The link returns directly the script. No need for unpacking
|
# The link returns directly the script. No need for unpacking
|
||||||
unpackPhase = "true";
|
unpackPhase = "true";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
install -D -m755 $src $out/bin/checkbashisms
|
||||||
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
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://sourceforge.net/projects/checkbaskisms/;
|
homepage = http://sourceforge.net/projects/checkbaskisms/;
|
||||||
description = "Check shell scripts for non-portable syntax";
|
description = "Check shell scripts for non-portable syntax";
|
||||||
license = stdenv.lib.licenses.gpl2;
|
license = stdenv.lib.licenses.gpl2;
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.unix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue