Merge pull request #58472 from thefloweringash/emacs-x-darwin
emacs: only use patchelf on linux
This commit is contained in:
commit
45dbb34640
@ -123,7 +123,7 @@ stdenv.mkDerivation rec {
|
|||||||
let libPath = lib.makeLibraryPath [
|
let libPath = lib.makeLibraryPath [
|
||||||
libXcursor
|
libXcursor
|
||||||
];
|
];
|
||||||
in lib.optionalString (withX && toolkit == "lucid") ''
|
in lib.optionalString (stdenv.isLinux && withX && toolkit == "lucid") ''
|
||||||
patchelf --set-rpath \
|
patchelf --set-rpath \
|
||||||
"$(patchelf --print-rpath "$out/bin/emacs"):${libPath}" \
|
"$(patchelf --print-rpath "$out/bin/emacs"):${libPath}" \
|
||||||
"$out/bin/emacs"
|
"$out/bin/emacs"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user