1 { lib, stdenv, ncurses, customConfig ? null, pname, version, src, patches ? [] }:
4 inherit pname version src patches;
6 CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
8 postPatch = lib.optionalString (customConfig != null) ''
9 cp ${builtins.toFile "config.h" customConfig} ./config.h
12 nativeBuildInputs = [ ncurses ];
13 buildInputs = [ ncurses ];
16 substituteInPlace Makefile \
17 --replace /usr/share/terminfo $out/share/terminfo
20 makeFlags = [ "PREFIX=$(out)" ];
23 description = "Dynamic virtual terminal manager";
24 homepage = "http://www.brain-dump.org/projects/dvtm";
25 license = licenses.mit;
27 platforms = platforms.unix;