3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/guile/guile-lint/default.nix

31 lines
817 B
Nix
Raw Normal View History

2017-09-27 14:27:26 +01:00
{ stdenv, fetchurl, guile }:
stdenv.mkDerivation rec {
pname = "guile-lint";
2017-09-27 14:27:26 +01:00
version = "14";
src = fetchurl {
url = "https://download.tuxfamily.org/user42/${pname}-${version}.tar.bz2";
2017-09-27 14:36:12 +01:00
sha256 = "1gnhnmki05pkmzpbfc07vmb2iwza6vhy75y03bw2x2rk4fkggz2v";
};
buildInputs = [ guile ];
unpackPhase = ''tar xjvf "$src" && sourceRoot="$PWD/${pname}-${version}"'';
2017-09-27 14:27:26 +01:00
2017-09-27 14:42:16 +01:00
prePatch = ''
substituteInPlace guile-lint.in --replace \
"exec guile" "exec ${guile}/bin/guile"
'';
2018-03-18 21:27:13 +00:00
doCheck = !stdenv.isDarwin;
meta = with stdenv.lib; {
description = "Checks syntax and semantics in a Guile program or module";
homepage = "https://user42.tuxfamily.org/guile-lint/index.html";
license = licenses.gpl3Plus;
2017-09-27 14:33:01 +01:00
maintainers = with maintainers; [ vyp ];
platforms = platforms.all;
};
}