2014-09-21 19:26:28 +01:00
|
|
|
{ stdenv, fetchurl, ncurses, pcre, libpng, zlib, readline }:
|
2005-12-25 14:02:09 +00:00
|
|
|
|
2014-09-21 19:26:28 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "slang-2.3.0";
|
2005-12-25 14:02:09 +00:00
|
|
|
src = fetchurl {
|
2014-09-22 19:17:33 +01:00
|
|
|
url = "http://www.jedsoft.org/releases/slang/${name}.tar.gz";
|
|
|
|
sha256 = "0aqd2cjabj6nhd4r3dc4vhqif2bf3dmqnrn2gj0xm4gqyfd177jy";
|
2005-12-25 14:02:09 +00:00
|
|
|
};
|
2014-09-22 19:17:33 +01:00
|
|
|
|
2009-09-16 18:52:54 +01:00
|
|
|
# Fix some wrong hardcoded paths
|
2009-09-16 18:08:33 +01:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e "s|/usr/lib/terminfo|${ncurses}/lib/terminfo|" configure
|
2014-09-21 19:26:28 +01:00
|
|
|
sed -i -e "s|/usr/lib/terminfo|${ncurses}/lib/terminfo|" src/sltermin.c
|
2009-09-16 18:08:33 +01:00
|
|
|
sed -i -e "s|/bin/ln|ln|" src/Makefile.in
|
|
|
|
'';
|
|
|
|
configureFlags = "--with-png=${libpng} --with-z=${zlib} --with-pcre=${pcre} --with-readline=${readline}";
|
|
|
|
buildInputs = [ncurses pcre libpng zlib readline];
|
2014-09-21 19:26:28 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A multi-platform programmer's library designed to allow a developer to create robust software";
|
|
|
|
homepage = http://www.jedsoft.org/slang/;
|
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2015-03-20 15:52:02 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-09-21 19:26:28 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ fuuzetsu ];
|
|
|
|
};
|
2005-12-25 14:02:09 +00:00
|
|
|
}
|