2017-09-27 14:27:26 +01:00
|
|
|
{ stdenv, fetchurl, guile }:
|
|
|
|
|
2017-09-28 11:51:20 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-09-27 14:27:26 +01:00
|
|
|
name = "guile-lint-${version}";
|
|
|
|
version = "14";
|
2008-02-15 16:30:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-27 14:36:12 +01:00
|
|
|
url = "https://download.tuxfamily.org/user42/${name}.tar.bz2";
|
|
|
|
sha256 = "1gnhnmki05pkmzpbfc07vmb2iwza6vhy75y03bw2x2rk4fkggz2v";
|
2008-02-15 16:30:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ guile ];
|
|
|
|
|
|
|
|
unpackPhase = ''tar xjvf "$src" && sourceRoot="$PWD/${name}"'';
|
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
|
|
|
'';
|
|
|
|
|
2008-03-26 15:20:25 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|