2012-01-06 17:45:14 +01:00
|
|
|
{ fetchurl, stdenv, slang, popt }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-27 17:01:40 +01:00
|
|
|
name = "newt-0.52.20";
|
2012-01-06 17:45:14 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fedorahosted.org/releases/n/e/newt/${name}.tar.gz";
|
2018-02-27 17:01:40 +01:00
|
|
|
sha256 = "1g3dpfnvaw7vljbr7nzq1rl88d6r8cmrvvng9inphgzwxxmvlrld";
|
2012-01-06 17:45:14 +01: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 11:52:25 +02:00
|
|
|
NIX_LDFLAGS = "-lncurses";
|
|
|
|
|
2017-07-20 17:42:58 +02: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 19:35:20 +02:00
|
|
|
makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
|
|
];
|
2012-01-06 17:45:14 +01:00
|
|
|
|
2015-10-06 11:52:25 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-01-06 17:45:14 +01:00
|
|
|
homepage = https://fedorahosted.org/newt/;
|
|
|
|
description = "Library for color text mode, widget based user interfaces";
|
|
|
|
|
2015-10-06 11:52:25 +02:00
|
|
|
license = licenses.lgpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.viric ];
|
2012-01-06 17:45:14 +01:00
|
|
|
};
|
|
|
|
}
|