We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 56208f9 commit ce65217Copy full SHA for ce65217
tests/test-sources/plugins/pluginmanagers/packer.nix
@@ -1,3 +1,4 @@
1
+{ lib, pkgs, ... }:
2
{
3
# Empty configuration
4
empty = {
@@ -136,10 +137,19 @@
136
137
};
138
139
- no-packages = {
140
+ no-packages = cfg: {
141
plugins.packer = {
142
enable = true;
143
gitPackage = null;
144
145
+
146
+ assertions = [
147
+ {
148
+ assertion =
149
+ cfg.config.extraPackages == [ ]
150
+ || lib.any (x: lib.trace "${x.pname or ""}" x.pname or null != "git") cfg.config.extraPackages;
151
+ message = "A git package found when it wasn't expected";
152
+ }
153
+ ];
154
155
}
0 commit comments