Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
35 lines
680 B
Nix
35 lines
680 B
Nix
# Run:
|
|
# $ nix-instantiate --eval 'modules/generic/meta-maintainers/test.nix'
|
|
#
|
|
# Expected output:
|
|
# { }
|
|
#
|
|
# Debugging:
|
|
# drop .test from the end of this file, then use nix repl on it
|
|
rec {
|
|
lib = import ../../../lib;
|
|
|
|
example = lib.evalModules {
|
|
modules = [
|
|
../meta-maintainers.nix
|
|
{
|
|
_file = "eelco.nix";
|
|
meta.maintainers = [ lib.maintainers.eelco ];
|
|
}
|
|
];
|
|
};
|
|
|
|
test =
|
|
assert
|
|
example.config.meta.maintainers == {
|
|
${toString ../meta-maintainers.nix} = [
|
|
lib.maintainers.pierron
|
|
lib.maintainers.roberth
|
|
];
|
|
"eelco.nix" = [ lib.maintainers.eelco ];
|
|
};
|
|
{ };
|
|
|
|
}
|
|
.test
|