mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-07 23:04:00 +01:00
41 lines
732 B
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
|