mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 23:36:17 +01:00
25bef2d8f9
The library does not depend on stdenv, that `stdenv` exposes `lib` is an artifact of the ancient origins of nixpkgs.
31 lines
920 B
Nix
31 lines
920 B
Nix
import ./make-test-python.nix ({ pkgs, ...} : {
|
|
name = "roundcube";
|
|
meta = with pkgs.lib.maintainers; {
|
|
maintainers = [ globin ];
|
|
};
|
|
|
|
nodes = {
|
|
roundcube = { config, pkgs, ... }: {
|
|
services.roundcube = {
|
|
enable = true;
|
|
hostName = "roundcube";
|
|
database.password = "not production";
|
|
package = pkgs.roundcube.withPlugins (plugins: [ plugins.persistent_login ]);
|
|
plugins = [ "persistent_login" ];
|
|
dicts = with pkgs.aspellDicts; [ en fr de ];
|
|
};
|
|
services.nginx.virtualHosts.roundcube = {
|
|
forceSSL = false;
|
|
enableACME = false;
|
|
};
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
roundcube.start
|
|
roundcube.wait_for_unit("postgresql.service")
|
|
roundcube.wait_for_unit("phpfpm-roundcube.service")
|
|
roundcube.wait_for_unit("nginx.service")
|
|
roundcube.succeed("curl -sSfL http://roundcube/ | grep 'Keep me logged in'")
|
|
'';
|
|
})
|