summary refs log tree commit diff
path: root/pkgs/os-specific/bsd
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-09-20 22:56:45 -0500
committerWill Dietz <w@wdtz.org>2018-09-20 23:00:32 -0500
commitd08ff06d0a207a64c8a7f34c275239bc6d495ffa (patch)
tree95e6ae18a0c6cb8aa14a820820c0c2149aa767c4 /pkgs/os-specific/bsd
parent8517039fb96ae2debbe37e8d85c80e4c55cdf288 (diff)
downloadnixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.tar
nixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.tar.gz
nixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.tar.bz2
nixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.tar.lz
nixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.tar.xz
nixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.tar.zst
nixpkgs-d08ff06d0a207a64c8a7f34c275239bc6d495ffa.zip
netbsd.terminfo: break libcurses dep cycle with simple decl of use_env
Diffstat (limited to 'pkgs/os-specific/bsd')
-rw-r--r--pkgs/os-specific/bsd/netbsd/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/os-specific/bsd/netbsd/default.nix b/pkgs/os-specific/bsd/netbsd/default.nix
index 50f4416ade8..3ef458c1ca9 100644
--- a/pkgs/os-specific/bsd/netbsd/default.nix
+++ b/pkgs/os-specific/bsd/netbsd/default.nix
@@ -542,6 +542,8 @@ in rec {
     makeFlags = [ "INCSDIR=/include" ];
     postPatch = ''
       substituteInPlace term.c --replace /usr/share $out/share
+      substituteInPlace setupterm.c --replace '#include <curses.h>' 'void use_env(bool);'
+
     '';
     postInstall = ''
       (cd $NETBSDSRCDIR/share/terminfo && make && make BINDIR=/share install)