summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorLin Jian <me@linj.tech>2024-09-16 13:15:02 +0800
committerLin Jian <me@linj.tech>2024-09-16 13:15:02 +0800
commit13e80707b2e8f0f707f81791b06e4a5e0cdf246d (patch)
treecd127f46234c46fcce91c3db542d63f73242c856 /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentf5f9d0703b5f50231c815c088877d86b04cc5514 (diff)
emacs: make sure native compilation output dir is in $out
Native compilation output dir is the first writable one specified by native-comp-eln-load-path[1]. The first[2] dir in native-comp-eln-load-path is in $HOME. In the nix build sandbox, $HOME normally does not exist so this first dir is not writable. The second dir is in $out and thus is writable. So it is chosen as the native compilation output dir. Some packages, such as auctex[3], needs a writable $HOME when being compiled. To avoid compilation error, it is necessary to create a writable $HOME. To make sure native compilation output dir is in $out, we can make the first dir of native-comp-eln-load-path, the one in $HOME, read-only. Or we can explicitly choose the second dir. This patch use the second explicit method. [1]: (info "(elisp) Native-Compilation Functions") [2]: https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/startup.el?id=f27553c30a772a0103d2e6762e4d7f588f302e4b#n615 [3]: https://hydra.nixos.org/build/271252219/nixlog/1
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions