tix/flake.nix

31 lines
673 B
Nix
Raw Normal View History

2024-01-02 09:02:41 +00:00
{
description = "A testing library for nix";
2024-01-02 11:13:47 +00:00
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
2024-01-02 12:44:07 +00:00
tix = import ./tix/. {inherit pkgs;};
2024-01-02 11:13:47 +00:00
in
2024-01-02 13:15:50 +00:00
tix
// {
2024-01-02 12:44:07 +00:00
packages.x86_64-linux.test = tix.run [
./test/it.test.nix
./test/test.test.nix
2024-01-02 13:15:50 +00:00
./test/describe.test.nix
2024-01-03 01:27:47 +00:00
./test/watch.test.nix
2024-01-02 12:44:07 +00:00
];
packages.x86_64-linux.example = tix.run [
./mytest.nix
];
packages.x86_64-linux.watch =
2024-01-03 01:27:47 +00:00
tix.watch {
cmd = "nix run .#test --show-trace";
view = "${pkgs.fx}/bin/fx";
stop = "pkill fx";
};
2024-01-02 11:13:47 +00:00
};
2024-01-02 09:02:41 +00:00
}