@@ -1,33 +1,26 @@
11{ stdenv, fetchurl, perl }:
22stdenv.mkDerivation rec {
3− inherit perl;
4−
5− name = "checkbashisms";
63 version = "2.0.0.2";
4+ name = "checkbashisms-${version}";
75
86 src = fetchurl {
9− url = "mirror://sourceforge/project/checkbaskisms/${version}/${name}";
7+ url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms";
108 sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd";
119 };
1210
11+ buildInputs = [ perl ];
12+
1313 # The link returns directly the script. No need for unpacking
1414 unpackPhase = "true";
1515
1616 installPhase = ''
17− mkdir -p $out/bin
18− cp $src $out/bin/checkbashisms
19− chmod 755 $out/bin/checkbashisms
20− '';
21−
22− # Makes sure to point to the proper perl version
23− fixupPhase = ''
24− sed -e "s#/usr/bin/perl#$perl/bin/perl#" -i $out/bin/checkbashisms
17+ install -D -m755 $src $out/bin/checkbashisms
2518 '';
2619
2720 meta = {
2821 homepage = http://sourceforge.net/projects/checkbaskisms/;
2922 description = "Check shell scripts for non-portable syntax";
3023 license = stdenv.lib.licenses.gpl2;
31− platforms = stdenv.lib.platforms.linux;
24+ platforms = stdenv.lib.platforms.unix;
3225 };
3326}