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-20 18:27:45 +0800
committerLin Jian <me@linj.tech>2024-09-20 18:59:22 +0800
commit47b62f5785fef1c72e1116e9b62d8383a2f24470 (patch)
treee6123a15b6827c56c05035f7f273fe8a0187a7ec /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parent3e895f524013ffc90cc1f3e27225c7b5bb1c331c (diff)
emacs: fix elisp native compilation errors caused by load-path
If $pname-$version/foo.el requires $pname-$version/bar-dir/bar.el, previously there were native compilation errors like the below one because $pname-$version/bar-dir was not added to load-path (only $pname-$version is added). Error: file-missing ("/nix/store/hash-emacs-sly-20240809.2119/share/emacs/site-lisp/elpa/sly-20240809.2119/contrib/sly-mrepl.el" "Cannot open load file" "No such file or directory" "sly-autodoc") Currently, these packages are affected: haskell-tng-mode[^1], psgml[3], sly[4], ess[5], el-get[6], proof-general[7], hyperbole[8] and edts[9]. At run time, we recursively[1] add[2] $pname-$version and its subdirs to load-path. Let's also do that at build time to fix this kind of errors. [1]: https://github.com/NixOS/nixpkgs/blob/9625766c32942d4fdeef6cfee0d4337f75697b5f/pkgs/applications/editors/emacs/site-start.el#L18 [2]: https://github.com/NixOS/nixpkgs/blob/9625766c32942d4fdeef6cfee0d4337f75697b5f/pkgs/applications/editors/emacs/build-support/wrapper.nix#L170-L175 [3]: https://hydra.nixos.org/build/271291118/nixlog/1 [4]: https://hydra.nixos.org/build/271372072/nixlog/1 [5]: https://hydra.nixos.org/build/271284390/nixlog/1 [6]: https://hydra.nixos.org/build/271385904/nixlog/1 [7]: https://hydra.nixos.org/build/271277707/nixlog/1 [8]: https://hydra.nixos.org/build/271345526/nixlog/1 [9]: https://hydra.nixos.org/build/271290054/nixlog/1 [^1]: Errors of this kind are shadowed by other errors.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions