nixpkgs/modules/generic/meta-maintainers/test.nix

41 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