blob: dada8551cf28d22bb3f266b3f83e1a0285e3d4bf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
pkgs,
self ? ../.,
finix,
}: let
testLib = import (finix + "/tests/lib") {
inherit pkgs;
lib = pkgs.lib;
};
hjemTest = test: testLib.mkTest test;
inherit (pkgs.lib.filesystem) packagesFromDirectoryRecursive;
prefixAttrs = prefix: pkgs.lib.mapAttrs' (name: pkgs.lib.nameValuePair "${prefix}-${name}");
checks = prefixAttrs "finix" (packagesFromDirectoryRecursive {
callPackage = pkgs.newScope (
checks
// {
inherit hjemTest;
hjemModule = (import (self + "/modules/finix")).default;
}
);
directory = ../tests/finix;
});
in
checks
|