emacs: Use stdenv.cc.libc instead of plain .libc

This is the portable way to address the system-appropriate libc,
better than conditionalizing by (darwin/GNU) system or using either
one.
This commit is contained in:
Andreas Fuchs 2020-08-29 12:22:14 -04:00
parent 41e34e76d8
commit ad7a3fb3f6

View file

@ -72,7 +72,7 @@ in stdenv.mkDerivation {
"${lib.getLib libgccjit}/lib"
"${lib.getLib libgccjit}/lib/gcc/${targetPlatform.config}/${libgccjit.version}"
"${lib.getLib stdenv.cc.cc}/lib"
"${lib.getLib stdenv.libc}/lib"
"${lib.getLib stdenv.cc.libc}/lib"
]));
in ''
substituteInPlace lisp/emacs-lisp/comp.el --replace \