lol

pkgsMusl.xterm: fix build (#220731)

authored by

Yureka and committed by
GitHub
656709bc 3790924e

+7 -2
+7 -2
pkgs/applications/terminal-emulators/xterm/default.nix
··· 54 54 "--with-app-defaults=$(out)/lib/X11/app-defaults" 55 55 ] ++ lib.optional enableDecLocator "--enable-dec-locator"; 56 56 57 - # Work around broken "plink.sh". 58 - NIX_LDFLAGS = "-lXmu -lXt -lICE -lX11 -lfontconfig"; 57 + env = { 58 + # Work around broken "plink.sh". 59 + NIX_LDFLAGS = "-lXmu -lXt -lICE -lX11 -lfontconfig"; 60 + } // lib.optionalAttrs stdenv.hostPlatform.isMusl { 61 + # Various symbols missing without this define: TAB3, NLDLY, CRDLY, BSDLY, FFDLY, CBAUD 62 + NIX_CFLAGS_COMPILE = "-D_GNU_SOURCE"; 63 + }; 59 64 60 65 # Hack to get xterm built with the feature of releasing a possible setgid of 'utmp', 61 66 # decided by the sysadmin to allow the xterm reporting to /var/run/utmp