mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
84b1b01702
This is to avoid stealing keys from submodules. `class` might be common enough that reinterpreting existing `class` attributes in configurations as a declaration leads to fairly widespread problems.
15 lines
328 B
Nix
15 lines
328 B
Nix
{ config, ... }: {
|
|
class = { "just" = "data"; };
|
|
a = "one";
|
|
b = "two";
|
|
meta = "meta";
|
|
|
|
_module.args.result =
|
|
let r = builtins.removeAttrs config [ "_module" ];
|
|
in builtins.trace (builtins.deepSeq r r) (r == {
|
|
a = "one";
|
|
b = "two";
|
|
class = { "just" = "data"; };
|
|
meta = "meta";
|
|
});
|
|
}
|