2017-09-27 13:27:26 +00:00
|
|
|
{ stdenv, fetchurl, guile }:
|
|
|
|
|
|
|
|
let
|
|
|
|
name = "guile-lint-${version}";
|
|
|
|
version = "14";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2008-02-15 16:30:33 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-09-27 13:36:12 +00: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 13:27:26 +00:00
|
|
|
|
2017-09-27 13:42:16 +00:00
|
|
|
prePatch = ''
|
2008-02-15 16:30:33 +00:00
|
|
|
cat guile-lint.in | \
|
|
|
|
sed 's|^exec guile|exec $\{GUILE:-${guile}/bin/guile}|g' > ,,tmp && \
|
|
|
|
mv ,,tmp guile-lint.in
|
|
|
|
'';
|
|
|
|
|
2008-03-26 15:20:25 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2017-09-27 13:30:16 +00:00
|
|
|
meta = with stdenv.lib; {
|
2017-09-27 13:28:07 +00:00
|
|
|
description = "Checks syntax and semantics in a Guile program or module";
|
2017-09-27 13:28:35 +00:00
|
|
|
homepage = "https://user42.tuxfamily.org/guile-lint/index.html";
|
2017-09-27 13:30:16 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2017-09-27 13:33:01 +00:00
|
|
|
maintainers = with maintainers; [ vyp ];
|
2017-09-27 13:32:03 +00:00
|
|
|
platforms = platforms.all;
|
2008-02-15 16:30:33 +00:00
|
|
|
};
|
|
|
|
}
|