mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
38 lines
998 B
Nix
38 lines
998 B
Nix
{ fetchurl, stdenv, slang, popt }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "newt-0.52.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://fedorahosted.org/releases/n/e/newt/${name}.tar.gz";
|
|
sha256 = "1g3dpfnvaw7vljbr7nzq1rl88d6r8cmrvvng9inphgzwxxmvlrld";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i -e s,/usr/bin/install,install, -e s,-I/usr/include/slang,, Makefile.in po/Makefile
|
|
'';
|
|
|
|
buildInputs = [ slang popt ];
|
|
|
|
NIX_LDFLAGS = "-lncurses";
|
|
|
|
preConfigure = ''
|
|
# If CPP is set explicitly, configure and make will not agree about which
|
|
# programs to use at different stages.
|
|
unset CPP
|
|
'';
|
|
|
|
makeFlags = stdenv.lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
|
|
"CROSS_COMPILE=${stdenv.cc.targetPrefix}"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = https://fedorahosted.org/newt/;
|
|
description = "Library for color text mode, widget based user interfaces";
|
|
|
|
license = licenses.lgpl2;
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.viric ];
|
|
};
|
|
}
|