1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-12 07:34:36 +00:00
nixpkgs/nixos/modules/services/web-servers
Daniel Nagy 7c121e60c5
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.
2021-02-11 11:56:06 +01:00
..
apache-httpd nixos/httpd: fix lua paths 2021-02-11 11:56:06 +01:00
hitch
jboss nixos/module/jboss: Add types to options (#110451) 2021-01-22 11:11:40 +01:00
lighttpd treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
nginx Merge pull request #111302 from fooker/pr/nginx-default-type 2021-02-09 01:44:47 +01:00
phpfpm
unit nixos/unit: add stateDir and logDir types 2021-01-31 13:41:53 +01:00
varnish
caddy.nix Merge pull request #97618 from lf-/fix-bad-caddy-configs 2021-01-29 10:08:46 -05:00
darkhttpd.nix
fcgiwrap.nix
hydron.nix
mighttpd2.nix
minio.nix
molly-brown.nix
shellinabox.nix
tomcat.nix nixos/tomcat: add extraGroups type (#110486) 2021-01-22 16:22:06 +01:00
traefik.nix
ttyd.nix
uwsgi.nix nixos/uwsgi: set up the default runtime directory 2021-01-25 14:05:39 +01:00
zope2.nix