2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, guile }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "guile-lint";
|
|
|
|
version = "14";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://download.tuxfamily.org/user42/${pname}-${version}.tar.bz2";
|
|
|
|
sha256 = "1gnhnmki05pkmzpbfc07vmb2iwza6vhy75y03bw2x2rk4fkggz2v";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ guile ];
|
|
|
|
|
|
|
|
unpackPhase = ''tar xjvf "$src" && sourceRoot="$PWD/${pname}-${version}"'';
|
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace guile-lint.in --replace \
|
|
|
|
"exec guile" "exec ${guile}/bin/guile"
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Checks syntax and semantics in a Guile program or module";
|
|
|
|
homepage = "https://user42.tuxfamily.org/guile-lint/index.html";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|