1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 06:01:15 +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 treewide: Switch to system users 2019-10-12 22:25:28 +02:00
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 nixos/phpfpm: remove unnecessary sendmail configuration 2020-10-02 09:11:14 +02:00
unit nixos/unit: add stateDir and logDir types 2021-01-31 13:41:53 +01:00
varnish nixos/varnish: fix default package name 2019-11-13 16:39:45 +01:00
caddy.nix Merge pull request #97618 from lf-/fix-bad-caddy-configs 2021-01-29 10:08:46 -05:00
darkhttpd.nix nixos/darkhttpd: fix package reference 2019-08-28 09:04:58 +08:00
fcgiwrap.nix
hydron.nix nixos/hydron: replace deprecated usage of PermissionsStartOnly 2019-05-25 08:38:15 -04:00
mighttpd2.nix nixos/mighttpd2: /var/run -> /run 2019-03-24 21:15:33 +01:00
minio.nix nixos/minio: replace deprecated usage of PermissionsStartOnly 2019-04-13 07:00:56 -04:00
molly-brown.nix nixos/molly-brown: refactor module to use a TOML generator 2020-09-28 14:38:31 +02:00
shellinabox.nix nixos/modules: remove trailing whitespace 2020-08-07 14:45:39 +01:00
tomcat.nix nixos/tomcat: add extraGroups type (#110486) 2021-01-22 16:22:06 +01:00
traefik.nix nixos/modules: fix systemd start rate-limits 2020-10-31 01:35:56 -07:00
ttyd.nix nixos/ttyd: init 2019-11-13 23:18:47 +00:00
uwsgi.nix nixos/uwsgi: set up the default runtime directory 2021-01-25 14:05:39 +01:00
zope2.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00