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