2020-03-02 11:13:47 +01:00
|
|
|
{ pkgs ? import ../pkgs.nix, nixosTestIsPerl ? false }:
|
2019-01-02 09:54:46 +01:00
|
|
|
let
|
2019-03-26 14:06:50 +01:00
|
|
|
inherit (pkgs) nixosTest recurseIntoAttrs arion;
|
2019-01-02 09:54:46 +01:00
|
|
|
in
|
|
|
|
|
|
|
|
recurseIntoAttrs {
|
2019-03-26 14:06:50 +01:00
|
|
|
|
2020-03-02 11:13:47 +01:00
|
|
|
test = if nixosTestIsPerl then nixosTest ./arion-test-perl else nixosTest ./arion-test;
|
2019-03-26 14:06:50 +01:00
|
|
|
|
|
|
|
testBuild = arion.build {
|
|
|
|
|
|
|
|
# To be more accurately, you can do
|
|
|
|
# pkgs = import ../examples/minimal/arion-pkgs.nix;
|
|
|
|
# but this is quite efficient:
|
|
|
|
inherit pkgs;
|
|
|
|
|
|
|
|
modules = [ ../examples/minimal/arion-compose.nix ];
|
|
|
|
};
|
|
|
|
|
2019-01-02 09:54:46 +01:00
|
|
|
}
|