summary refs log tree commit diff
path: root/pkgs/development/tools/guile/guile-lint/default.nix
blob: fd9347a4007fae06ebda6be970b4be11ce325ef2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchurl, guile }:

stdenv.mkDerivation rec {
  name = "guile-lint-${version}";
  version = "14";

  src = fetchurl {
    url = "https://download.tuxfamily.org/user42/${name}.tar.bz2";
    sha256 = "1gnhnmki05pkmzpbfc07vmb2iwza6vhy75y03bw2x2rk4fkggz2v";
  };

  buildInputs = [ guile ];

  unpackPhase = ''tar xjvf "$src" && sourceRoot="$PWD/${name}"'';

  prePatch = ''
    substituteInPlace guile-lint.in --replace \
      "exec guile" "exec ${guile}/bin/guile"
  '';

  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;
    maintainers = with maintainers; [ vyp ];
    platforms = platforms.all;
  };
}