unit-test: convert to shell app

I saw the exit status in ci was actually ignored.
This commit is contained in:
Jörg Thalheim 2026-01-10 08:46:09 +01:00 committed by Jörg Thalheim
parent 39c667d73c
commit 0809aa0ae7
3 changed files with 17 additions and 26 deletions

View file

@ -147,13 +147,16 @@
nix --extra-experimental-features "nix-command flakes" hash path ./dev/private | tr -d '\n' > ./dev/private.narHash
''}";
};
unit-tests = {
type = "app";
program = "${pkgs.callPackage ./pkgs/unit-tests.nix { }}/bin/unit-tests";
};
}
);
devShells = eachSystem (
{ pkgs, ... }:
{
unit-tests = pkgs.callPackage ./pkgs/unit-tests.nix { };
default = pkgs.callPackage ./shell.nix { };
}
);