2012-01-06 20:45:14 +04:00
|
|
|
{ fetchurl, stdenv, slang, popt }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2013-12-14 01:03:31 +04:00
|
|
|
name = "newt-0.52.15";
|
2012-01-06 20:45:14 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fedorahosted.org/releases/n/e/newt/${name}.tar.gz";
|
2013-12-14 01:03:31 +04:00
|
|
|
sha256 = "0hg2l0siriq6qrz6mmzr6l7rpl40ay56c8cak87rb2ks7s952qbs";
|
2012-01-06 20:45:14 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
sed -i -e s,/usr/bin/install,install, -e s,-I/usr/include/slang,, Makefile.in po/Makefile
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ slang popt ];
|
|
|
|
|
2015-10-06 12:52:25 +03:00
|
|
|
NIX_LDFLAGS = "-lncurses";
|
|
|
|
|
2017-07-20 18:42:58 +03:00
|
|
|
preConfigure = ''
|
|
|
|
# If CPP is set explicitly, configure and make will not agree about which
|
|
|
|
# programs to use at different stages.
|
|
|
|
unset CPP
|
|
|
|
'';
|
|
|
|
|
2012-01-06 20:45:14 +04:00
|
|
|
crossAttrs = {
|
2017-06-28 23:22:44 +03:00
|
|
|
makeFlags = "CROSS_COMPILE=${stdenv.cc.prefix}";
|
2012-01-06 20:45:14 +04:00
|
|
|
};
|
|
|
|
|
2015-10-06 12:52:25 +03:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-06 20:45:14 +04:00
|
|
|
homepage = https://fedorahosted.org/newt/;
|
|
|
|
description = "Library for color text mode, widget based user interfaces";
|
|
|
|
|
2015-10-06 12:52:25 +03:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.viric ];
|
2012-01-06 20:45:14 +04:00
|
|
|
};
|
|
|
|
}
|