mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
nixos/tests/couchdb.nix: get rid of with lib
This commit is contained in:
parent
5ee5e4bb46
commit
a137b4161d
|
@ -1,9 +1,8 @@
|
||||||
let
|
let
|
||||||
|
|
||||||
makeNode = couchpkg: user: passwd:
|
makeNode = couchpkg: user: passwd:
|
||||||
{ pkgs, ... } :
|
{ pkgs, ... } :
|
||||||
|
|
||||||
{ environment.systemPackages = with pkgs; [ jq ];
|
{ environment.systemPackages = [ pkgs.jq ];
|
||||||
services.couchdb.enable = true;
|
services.couchdb.enable = true;
|
||||||
services.couchdb.package = couchpkg;
|
services.couchdb.package = couchpkg;
|
||||||
services.couchdb.adminUser = user;
|
services.couchdb.adminUser = user;
|
||||||
|
@ -12,16 +11,11 @@ let
|
||||||
testuser = "testadmin";
|
testuser = "testadmin";
|
||||||
testpass = "cowabunga";
|
testpass = "cowabunga";
|
||||||
testlogin = "${testuser}:${testpass}@";
|
testlogin = "${testuser}:${testpass}@";
|
||||||
|
in
|
||||||
in import ./make-test-python.nix ({ pkgs, lib, ...}:
|
import ./make-test-python.nix ({ pkgs, lib, ...}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
name = "couchdb";
|
name = "couchdb";
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta.maintainers = [ ];
|
||||||
maintainers = [ ];
|
|
||||||
};
|
|
||||||
|
|
||||||
nodes = {
|
nodes = {
|
||||||
couchdb3 = makeNode pkgs.couchdb3 testuser testpass;
|
couchdb3 = makeNode pkgs.couchdb3 testuser testpass;
|
||||||
|
|
Loading…
Reference in a new issue