pkgsMusl.xterm: fix build (#220731)

This commit is contained in:
Yureka 2023-03-20 15:34:09 +01:00 committed by GitHub
parent 3790924e90
commit 656709bceb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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