1# Run:
2# $ nix-instantiate --eval 'modules/generic/meta-maintainers/test.nix'
3#
4# Expected output:
5# { }
6#
7# Debugging:
8# drop .test from the end of this file, then use nix repl on it
9rec {
10 lib = import ../../../lib;
11
12 example = lib.evalModules {
13 modules = [
14 ../meta-maintainers.nix
15 {
16 _file = "eelco.nix";
17 meta.maintainers = [ lib.maintainers.eelco ];
18 }
19 ];
20 };
21
22 test =
23 assert
24 example.config.meta.maintainers == {
25 ${toString ../meta-maintainers.nix} = [
26 lib.maintainers.pierron
27 lib.maintainers.roberth
28 ];
29 "eelco.nix" = [ lib.maintainers.eelco ];
30 };
31 { };
32
33}
34.test