mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 04:33:57 +00:00
33 lines
810 B
Nix
33 lines
810 B
Nix
{ stdenv, fetchurl, guile }:
|
|
|
|
let
|
|
name = "guile-lint-${version}";
|
|
version = "14";
|
|
in stdenv.mkDerivation {
|
|
inherit name;
|
|
|
|
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 = true;
|
|
|
|
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;
|
|
};
|
|
}
|