summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@posteo.de>2021-01-05 21:04:57 +0100
committerDaniel Nagy <danielnagy@posteo.de>2021-02-11 11:56:06 +0100
commit7c121e60c5625eb7683fbbc12cb1d6ac9bdc1744 (patch)
treebb2f10c4d4aaac1a7f190f63cf790c20829dc6cb /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentdd65c8b2a7c936f2456c4d2c7a2dc6789bc3f177 (diff)
nixos/httpd: fix lua paths
Account for the fact that, when creating a lua package without the "withPackages" helper, we dont get an extra "lua" attribute in the package. Therefore we need to distinguish between the "withPackages" case and the direct ( or "empty" ) lua package. For example with this nixos config: ```nix { services.httpd = { enable = true; package = pkgs.apacheHttpd.override { luaSupport = true; lua5 = pkgs.lua5_3.withPackages (ps: with ps; [ luafilesystem ] ); }; }; } ``` Here we say that we want to have apache to use a lua, packaged with the `luafilesystem` module so that we can `require` that in scripts to render http responses. There, the set that gets assigned to `lua5 ` does not have a `luaversion` attribute, rather it has a `lua` attribute wherein lies a `luaversion` attribute. If we dont package additional modules, then we dont have that `lua` attribute in between and rather directly have to use `luaversion` directly.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions