2009-09-16 17:08:33 +00:00
|
|
|
{stdenv, fetchurl, ncurses, pcre, libpng, zlib, readline}:
|
2005-12-25 14:02:09 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2009-09-16 17:08:33 +00:00
|
|
|
name = "slang-2.2.1";
|
2005-12-25 14:02:09 +00:00
|
|
|
src = fetchurl {
|
2009-09-16 17:08:33 +00:00
|
|
|
url = ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v2.2/slang-2.2.1.tar.bz2;
|
|
|
|
sha256 = "1qgfg6i5lzmw8j9aqd8pgz3vnhn80giij9bpgm5r3gmna2h0rzfj";
|
2005-12-25 14:02:09 +00:00
|
|
|
};
|
2009-09-16 17:52:54 +00:00
|
|
|
# Fix some wrong hardcoded paths
|
2009-09-16 17:08:33 +00:00
|
|
|
preConfigure = ''
|
|
|
|
sed -i -e "s|/usr/lib/terminfo|${ncurses}/lib/terminfo|" configure
|
2009-09-16 17:52:54 +00:00
|
|
|
sed -i -e "s|/usr/lib/terminfo|${ncurses}/lib/terminfo|" src/sltermin.c
|
2009-09-16 17:08:33 +00: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];
|
2005-12-25 14:02:09 +00:00
|
|
|
}
|