netbsd.libterminfo: fix build
Tested building netbsd.libterminfo and pkgsCross.x86_64-netbsd.netbsd.libterminfo from x86_64-linux.
This commit is contained in:
@@ -510,12 +510,19 @@ let
|
|||||||
path = "lib/libterminfo";
|
path = "lib/libterminfo";
|
||||||
version = "8.0";
|
version = "8.0";
|
||||||
sha256 = "14gp0d6fh6zjnbac2yjhyq5m6rca7gm6q1s9gilhzpdgl9m7vb9r";
|
sha256 = "14gp0d6fh6zjnbac2yjhyq5m6rca7gm6q1s9gilhzpdgl9m7vb9r";
|
||||||
|
nativeBuildInputs = [
|
||||||
|
makeMinimal install tsort lorder mandoc statHook nbperf tic
|
||||||
|
];
|
||||||
buildInputs = [ compat ];
|
buildInputs = [ compat ];
|
||||||
|
SHLIBINSTALLDIR = "$(out)/lib";
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace term.c --replace /usr/share $out/share
|
substituteInPlace term.c --replace /usr/share $out/share
|
||||||
substituteInPlace setupterm.c \
|
substituteInPlace setupterm.c \
|
||||||
--replace '#include <curses.h>' 'void use_env(bool);'
|
--replace '#include <curses.h>' 'void use_env(bool);'
|
||||||
'';
|
'';
|
||||||
|
postBuild = ''
|
||||||
|
make -C $NETBSDSRCDIR/share/terminfo BINDIR=$out/share
|
||||||
|
'';
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
make -C $NETBSDSRCDIR/share/terminfo BINDIR=$out/share install
|
make -C $NETBSDSRCDIR/share/terminfo BINDIR=$out/share install
|
||||||
'';
|
'';
|
||||||
|
|||||||
Reference in New Issue
Block a user