emacs: Use stdenv.libc instead of .glibc

The latter doesn't exist on Darwin (and, presumably, other targets as
well). This change allows emacsGcc from emacs-overlay to attempt to
build where previously, the derivation would error out.
This commit is contained in:
Andreas Fuchs 2020-08-02 16:14:57 -04:00
parent 038e86ffbb
commit 0d15ea9500

View file

@ -70,7 +70,7 @@ in stdenv.mkDerivation {
libPath = lib.concatStringsSep ":" [
"${lib.getLib libgccjit}/lib/gcc/${targetPlatform.config}/${libgccjit.version}"
"${lib.getLib stdenv.cc.cc}/lib"
"${lib.getLib stdenv.glibc}/lib"
"${lib.getLib stdenv.libc}/lib"
];
in ''
substituteInPlace lisp/emacs-lisp/comp.el --replace \