https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
21 lines
580 B
Nix
21 lines
580 B
Nix
{ system ? builtins.currentSystem
|
|
, config ? { }
|
|
, pkgs ? import ../../.. { inherit system config; }
|
|
}:
|
|
|
|
with pkgs.lib;
|
|
|
|
foldl
|
|
(matrix: ver: matrix // {
|
|
"basic${toString ver}" = import ./basic.nix { inherit system pkgs; nextcloudVersion = ver; };
|
|
"with-postgresql-and-redis${toString ver}" = import ./with-postgresql-and-redis.nix {
|
|
inherit system pkgs;
|
|
nextcloudVersion = ver;
|
|
};
|
|
"with-mysql-and-memcached${toString ver}" = import ./with-mysql-and-memcached.nix {
|
|
inherit system pkgs;
|
|
nextcloudVersion = ver;
|
|
};
|
|
})
|
|
{ }
|
|
[ 23 24 ]
|