nixpkgs/pkgs/development/libraries/newt/default.nix
Vladimír Čunát b9031ea1da slang: fix some dependants and split into outputs
These termcap and similar (nonexistent) libraries are baffling me.
2015-10-13 20:18:46 +02:00

32 lines
781 B
Nix

{ fetchurl, stdenv, slang, popt }:
stdenv.mkDerivation rec {
name = "newt-0.52.15";
src = fetchurl {
url = "https://fedorahosted.org/releases/n/e/newt/${name}.tar.gz";
sha256 = "0hg2l0siriq6qrz6mmzr6l7rpl40ay56c8cak87rb2ks7s952qbs";
};
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";
crossAttrs = {
makeFlags = "CROSS_COMPILE=${stdenv.cross.config}-";
};
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 ];
};
}