2012-01-06 16:45:14 +00:00
|
|
|
{ fetchurl, stdenv, slang, popt }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-05-28 23:40:13 +00:00
|
|
|
pname = "newt";
|
|
|
|
version = "0.52.21";
|
2012-01-06 16:45:14 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-05-28 23:40:13 +00:00
|
|
|
url = "https://fedorahosted.org/releases/n/e/${pname}/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "0cdvbancr7y4nrj8257y5n45hmhizr8isynagy4fpsnpammv8pi6";
|
2012-01-06 16:45:14 +00: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 09:52:25 +00:00
|
|
|
NIX_LDFLAGS = "-lncurses";
|
|
|
|
|
2017-07-20 15:42:58 +00:00
|
|
|
preConfigure = ''
|
|
|
|
# If CPP is set explicitly, configure and make will not agree about which
|
|
|
|
# programs to use at different stages.
|
|
|
|
unset CPP
|
|
|
|
'';
|
|
|
|
|
2018-09-04 17:35:20 +00:00
|
|
|
makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
2012-01-06 16:45:14 +00:00
|
|
|
|
2015-10-06 09:52:25 +00:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://fedorahosted.org/newt/";
|
2012-01-06 16:45:14 +00:00
|
|
|
description = "Library for color text mode, widget based user interfaces";
|
|
|
|
|
2015-10-06 09:52:25 +00:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.viric ];
|
2012-01-06 16:45:14 +00:00
|
|
|
};
|
|
|
|
}
|