2017-09-27 14:27:26 +01:00
|
|
|
{ stdenv, fetchurl, guile }:
|
|
|
|
|
2017-09-28 11:51:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "guile-lint";
|
2017-09-27 14:27:26 +01:00
|
|
|
version = "14";
|
2008-02-15 16:30:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://download.tuxfamily.org/user42/${pname}-${version}.tar.bz2";
|
2017-09-27 14:36:12 +01:00
|
|
|
sha256 = "1gnhnmki05pkmzpbfc07vmb2iwza6vhy75y03bw2x2rk4fkggz2v";
|
2008-02-15 16:30:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ guile ];
|
|
|
|
|
2019-08-15 13:41:18 +01:00
|
|
|
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 = ''
|
2017-09-27 14:48:42 +01:00
|
|
|
substituteInPlace guile-lint.in --replace \
|
|
|
|
"exec guile" "exec ${guile}/bin/guile"
|
2008-02-15 16:30:33 +00:00
|
|
|
'';
|
|
|
|
|
2018-03-18 21:27:13 +00:00
|
|
|
doCheck = !stdenv.isDarwin;
|
2008-03-26 15:20:25 +00:00
|
|
|
|
2017-09-27 14:30:16 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-09-27 14:28:07 +01:00
|
|
|
description = "Checks syntax and semantics in a Guile program or module";
|
2017-09-27 14:28:35 +01:00
|
|
|
homepage = "https://user42.tuxfamily.org/guile-lint/index.html";
|
2017-09-27 14:30:16 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2017-09-27 14:33:01 +01:00
|
|
|
maintainers = with maintainers; [ vyp ];
|
2017-09-27 14:32:03 +01:00
|
|
|
platforms = platforms.all;
|
2008-02-15 16:30:33 +00:00
|
|
|
};
|
|
|
|
}
|