mirror of
https://gitlab.com/TECHNOFAB/nixtest.git
synced 2025-12-12 02:00:18 +01:00
29 lines
582 B
Nix
29 lines
582 B
Nix
{
|
|
flake-parts-lib,
|
|
lib,
|
|
self,
|
|
...
|
|
}: let
|
|
inherit (lib) mkOption types;
|
|
in {
|
|
options.perSystem = flake-parts-lib.mkPerSystemOption (
|
|
{
|
|
config,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
nixtests-lib = import ./. {inherit pkgs self;};
|
|
in {
|
|
options.nixtest = mkOption {
|
|
type = types.submodule (nixtests-lib.module);
|
|
default = {};
|
|
};
|
|
config.nixtest.base = toString self + "/";
|
|
|
|
config.legacyPackages = {
|
|
"nixtests" = config.nixtest.finalConfigJson;
|
|
"nixtests:run" = config.nixtest.app;
|
|
};
|
|
}
|
|
);
|
|
}
|