mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
Gabriel Arazas
0f1df5e447
This is to make checking with flakes a bit easier. Though, there are much better ways to integrate this even with just the nix-command experimental feature.
20 lines
456 B
Nix
20 lines
456 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"
|
|
'';
|
|
}
|