mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
42 lines
732 B
Nix
42 lines
732 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
|
|
let
|
|
ghost = {
|
|
github = "ghost";
|
|
githubId = 0;
|
|
name = "ghost";
|
|
};
|
|
in
|
|
rec {
|
|
lib = import ../../../lib;
|
|
|
|
example = lib.evalModules {
|
|
modules = [
|
|
../meta-maintainers.nix
|
|
{
|
|
_file = "ghost.nix";
|
|
meta.maintainers = [ ghost ];
|
|
}
|
|
];
|
|
};
|
|
|
|
test =
|
|
assert
|
|
example.config.meta.maintainers == {
|
|
${toString ../meta-maintainers.nix} = [
|
|
lib.maintainers.pierron
|
|
lib.maintainers.roberth
|
|
];
|
|
"ghost.nix" = [ ghost ];
|
|
};
|
|
{ };
|
|
|
|
}
|
|
.test
|