tix/flake.nix
2024-01-02 12:44:07 +00:00

24 lines
535 B
Nix

{
description = "A testing library for nix";
outputs = {
self,
nixpkgs,
}: let
system = "x86_64-linux";
pkgs = import nixpkgs {inherit system;};
tix = import ./tix/. {inherit pkgs;};
in
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";
};
}