···5454 "--with-app-defaults=$(out)/lib/X11/app-defaults"
5555 ] ++ lib.optional enableDecLocator "--enable-dec-locator";
56565757- # Work around broken "plink.sh".
5858- NIX_LDFLAGS = "-lXmu -lXt -lICE -lX11 -lfontconfig";
5757+ env = {
5858+ # Work around broken "plink.sh".
5959+ NIX_LDFLAGS = "-lXmu -lXt -lICE -lX11 -lfontconfig";
6060+ } // lib.optionalAttrs stdenv.hostPlatform.isMusl {
6161+ # Various symbols missing without this define: TAB3, NLDLY, CRDLY, BSDLY, FFDLY, CBAUD
6262+ NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE";
6363+ };
59646065 # Hack to get xterm built with the feature of releasing a possible setgid of 'utmp',
6166 # decided by the sysadmin to allow the xterm reporting to /var/run/utmp