Merge pull request #29850 from vyp/fix/guile-lint

guile-lint: fix build by building with guile 1.8
This commit is contained in:
Orivej Desh 2017-09-28 11:54:32 +00:00 committed by GitHub
commit f86e253b28
3 changed files with 20 additions and 14 deletions

View file

@ -1,27 +1,30 @@
{stdenv, fetchurl, guile}:
{ stdenv, fetchurl, guile }:
stdenv.mkDerivation rec {
name = "guile-lint-14";
name = "guile-lint-${version}";
version = "14";
src = fetchurl {
url = "http://download.tuxfamily.org/user42/" + name + ".tar.bz2";
sha256 = "5bfcf7a623338b2ef81ac097e3e136eaf32856dd0730b7eeaff3161067b5d0be";
url = "https://download.tuxfamily.org/user42/${name}.tar.bz2";
sha256 = "1gnhnmki05pkmzpbfc07vmb2iwza6vhy75y03bw2x2rk4fkggz2v";
};
buildInputs = [ guile ];
unpackPhase = ''tar xjvf "$src" && sourceRoot="$PWD/${name}"'';
patchPhase = ''
cat guile-lint.in | \
sed 's|^exec guile|exec $\{GUILE:-${guile}/bin/guile}|g' > ,,tmp && \
mv ,,tmp guile-lint.in
prePatch = ''
substituteInPlace guile-lint.in --replace \
"exec guile" "exec ${guile}/bin/guile"
'';
doCheck = true;
meta = {
description = "Guile-Lint checks syntax and semantics in a Guile program or module";
homepage = http://user42.tuxfamily.org/guile-lint/index.html;
license = "GPL";
broken = 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;
};
}

View file

@ -69,6 +69,7 @@ mapAliases (rec {
guileCairo = guile-cairo; # added 2017-09-24
guileGnome = guile-gnome; # added 2017-09-24
guile_lib = guile-lib; # added 2017-09-24
guileLint = guile-lint; # added 2017-09-27
guile_ncurses = guile-ncurses; # added 2017-09-24
gupnptools = gupnp-tools; # added 2015-12-19
gnustep-make = gnustep.make; # added 2016-7-6

View file

@ -7189,7 +7189,9 @@ with pkgs;
gtkdialog = callPackage ../development/tools/misc/gtkdialog { };
guileLint = callPackage ../development/tools/guile/guile-lint { };
guile-lint = callPackage ../development/tools/guile/guile-lint {
guile = guile_1_8;
};
gwrap = callPackage ../development/tools/guile/g-wrap { };