mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 10:58:02 +00:00
27 lines
511 B
Nix
27 lines
511 B
Nix
let
|
|
sources = import ../npins;
|
|
in
|
|
{
|
|
pkgs ? import sources.nixos-unstable { },
|
|
}:
|
|
|
|
let
|
|
lib = import ./lib { inherit pkgs; };
|
|
in
|
|
{
|
|
inherit lib;
|
|
libTestPkg =
|
|
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"
|
|
'';
|
|
}
|