1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-19 03:36:53 +00:00
nixpkgs/pkgs/development/tools/misc/checkbashisms/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

27 lines
699 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;
};
}