mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-09 05:53:50 +00:00
3572041533
Semi-automatic update. These checks were performed: - built on NixOS - ran `/nix/store/xbjik2b7dbm76gjy47mrvi27iwri304z-newt-0.52.20/bin/whiptail -h` got 0 exit code - ran `/nix/store/xbjik2b7dbm76gjy47mrvi27iwri304z-newt-0.52.20/bin/whiptail --help` got 0 exit code - ran `/nix/store/xbjik2b7dbm76gjy47mrvi27iwri304z-newt-0.52.20/bin/whiptail -v` and found version 0.52.20 - ran `/nix/store/xbjik2b7dbm76gjy47mrvi27iwri304z-newt-0.52.20/bin/whiptail --version` and found version 0.52.20 - found 0.52.20 with grep in /nix/store/xbjik2b7dbm76gjy47mrvi27iwri304z-newt-0.52.20 - found 0.52.20 in filename of file in /nix/store/xbjik2b7dbm76gjy47mrvi27iwri304z-newt-0.52.20 cc "@viric"
38 lines
945 B
Nix
38 lines
945 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
|
|
'';
|
|
|
|
crossAttrs = {
|
|
makeFlags = "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 ];
|
|
};
|
|
}
|