2017-09-24 13:03:56 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, guile, ncurses, libffi }:
|
2011-01-20 23:06:35 +01:00
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
let
|
|
|
|
name = "guile-ncurses-${version}";
|
|
|
|
version = "1.7";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
inherit name;
|
2011-01-20 23:06:35 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/guile-ncurses/${name}.tar.gz";
|
2016-05-15 13:16:45 +02:00
|
|
|
sha256 = "153vv75gb7l62sp3666rc97i63rnaqbx2rjar7d9b5w81fhwv4r5";
|
2011-01-20 23:06:35 +01:00
|
|
|
};
|
|
|
|
|
2017-02-18 08:23:07 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2013-11-29 03:40:35 +01:00
|
|
|
buildInputs = [ guile ncurses libffi ];
|
2011-01-20 23:06:35 +01:00
|
|
|
|
2017-09-24 13:03:56 +02:00
|
|
|
preConfigure = ''
|
|
|
|
configureFlags="$configureFlags --with-guilesitedir=$out/share/guile/site"
|
|
|
|
'';
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
for f in $out/share/guile/site/ncurses/**.scm; do \
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace "libguile-ncurses" "$out/lib/libguile-ncurses"; \
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
# XXX: 1 of 65 tests failed.
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Scheme interface to the NCurses libraries";
|
|
|
|
longDescription = ''
|
|
|
|
GNU Guile-Ncurses is a library for the Guile Scheme interpreter that
|
|
|
|
provides functions for creating text user interfaces. The text user
|
|
|
|
interface functionality is built on the ncurses libraries: curses, form,
|
|
|
|
panel, and menu.
|
2016-10-12 21:47:55 +02:00
|
|
|
'';
|
2017-09-24 13:03:56 +02:00
|
|
|
homepage = "https://www.gnu.org/software/guile-ncurses/";
|
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = with maintainers; [ vyp ];
|
2018-05-01 00:43:54 +02:00
|
|
|
platforms = platforms.gnu ++ platforms.linux;
|
2011-01-20 23:06:35 +01:00
|
|
|
};
|
|
|
|
}
|