nix-module-wrapper-manager-fds/tests/default.nix

28 lines
559 B
Nix
Raw Normal View History

let
sources = import ../npins;
in
2024-07-31 13:51:40 +00:00
{
pkgs ? import sources.nixos-unstable { },
}:
let
lib = import ./lib { inherit pkgs; };
in
{
inherit lib;
libTestPkg =
2024-07-31 13:51:40 +00:00
pkgs.runCommand "wrapper-manager-fds-lib-test"
{
testData = builtins.toJSON lib;
passAsFile = [ "testData" ];
nativeBuildInputs = with pkgs; [
yajsv
jq
];
}
''
yajsv -s "${./lib/tests.schema.json}" "$testDataPath" && touch $out || jq . "$testDataPath"
'';
configs = import ./configs { inherit pkgs; };
}