nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 26 lines 699 B view raw
1{ stdenv, fetchurl, perl }: 2stdenv.mkDerivation rec { 3 version = "2.0.0.2"; 4 pname = "checkbashisms"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/project/checkbaskisms/${version}/checkbashisms"; 8 sha256 = "1vm0yykkg58ja9ianfpm3mgrpah109gj33b41kl0jmmm11zip9jd"; 9 }; 10 11 buildInputs = [ perl ]; 12 13 # The link returns directly the script. No need for unpacking 14 dontUnpack = true; 15 16 installPhase = '' 17 install -D -m755 $src $out/bin/checkbashisms 18 ''; 19 20 meta = { 21 homepage = https://sourceforge.net/projects/checkbaskisms/; 22 description = "Check shell scripts for non-portable syntax"; 23 license = stdenv.lib.licenses.gpl2; 24 platforms = stdenv.lib.platforms.unix; 25 }; 26}