use nix-unit from nixpkgs

This commit is contained in:
Jörg Thalheim
2023-12-15 12:15:22 +01:00
parent ad5559974c
commit 0bdf55b09f
4 changed files with 3 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
{
perSystem = { pkgs, self', ... }: {
perSystem = { pkgs, ... }: {
checks = {
# check if the `clan config` example jsonschema and data is valid
@@ -19,7 +19,7 @@
# check if the `clan config` nix jsonschema converter unit tests succeed
lib-jsonschema-nix-unit-tests = pkgs.runCommand "lib-jsonschema-nix-unit-tests" { } ''
export NIX_PATH=nixpkgs=${pkgs.path}
${self'.packages.nix-unit}/bin/nix-unit \
${pkgs.nix-unit}/bin/nix-unit \
${./.}/test.nix \
--eval-store $(realpath .)
touch $out