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 12:44:07 +00:00
|
|
|
tix // {
|
|
|
|
packages.x86_64-linux.test = tix.run [
|
|
|
|
./test/it.test.nix
|
|
|
|
./test/test.test.nix
|
|
|
|
];
|
|
|
|
packages.x86_64-linux.example = tix.run [
|
|
|
|
./mytest.nix
|
|
|
|
];
|
|
|
|
packages.x86_64-linux.watch =
|
|
|
|
tix.watch "nix run .#test --show-trace | ${pkgs.fx}/bin/fx" "fx";
|
2024-01-02 11:13:47 +00:00
|
|
|
};
|
2024-01-02 09:02:41 +00:00
|
|
|
}
|