Commit Graph

482012 Commits

Author SHA1 Message Date
Robert Hensing
89491bef8d lib.modules: in evalModules return move _module.class -> configurationClass 2023-05-06 18:32:59 +02:00
Robert Hensing
4c7aa7d831 doc/module-system: _module is not internal 2023-05-06 18:32:59 +02:00
Robert Hensing
fd88c79418 lib.modules: Change class declaration in module to _class 2023-05-06 18:32:59 +02:00
Robert Hensing
7459c02495 lib/tests/modules.sh: Add submodule + class tests 2023-05-06 18:32:59 +02:00
Robert Hensing
8054785157 lib/modules: Move class out of specialArgs 2023-05-06 18:32:58 +02:00
Robert Hensing
8f02e95aff module-system.chapter.md: Elaborate on extendModules performance 2023-05-06 18:32:58 +02:00
Robert Hensing
5fac39307d module-system.chapter.md: Add mental model to type and extendModules 2023-05-06 18:32:58 +02:00
Robert Hensing
73f584c3cc lib/modules.nix: Deduplicate documentation
`file://./..` looks redundant, but makes the url clickable in vscode.
2023-05-06 18:32:58 +02:00
Robert Hensing
03a465f048 fixup! doc: Add Module System chapter start 2023-05-06 18:32:12 +02:00
Robert Hensing
ee1e14be0c doc: Add Module System chapter start 2023-05-06 18:29:05 +02:00
Robert Hensing
79703eef08 nixos,nixpkgs: Add module classes
This allows modules that declare their class to be checked.
While that's not most user modules, frameworks can take advantage
of this by setting declaring the module class for their users.
That way, the mistake of importing a module into the wrong hierarchy
can be reported more clearly in some cases.
2023-05-06 18:29:04 +02:00
Robert Hensing
84b1b01702 lib/modules: Only interpret class declaration in non-shorthand mode
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.
2023-05-06 18:29:04 +02:00
Robert Hensing
1f4a58ef03 lib/modules.nix: Refactor: extract applyModuleArgs 2023-05-06 18:29:04 +02:00
Robert Hensing
06ca78663c lib/modules.nix: Refactor: evaluate applyModuleArgsIfFunction in attrs case 2023-05-06 18:29:04 +02:00
Robert Hensing
439f6790bd lib/modules.nix: Restore old collectModules interface 2023-05-06 18:29:04 +02:00
Robert Hensing
9714487f74 lib/modules: Explain that a configuration can't be loaded as a module 2023-05-06 18:29:04 +02:00
Robert Hensing
2e689d58cb lib/modules: Improve error when a configuration is imported
This is appears to be a fairly common mistake for beginners who want
to build larger things from the system configurations, such as NixOps
networks, etc. Further explanation seems appropriate.
2023-05-06 18:29:03 +02:00
Robert Hensing
58f385f680 lib/modules: Check against importing things with a _type 2023-05-06 18:29:03 +02:00
Robert Hensing
b8ff2807a2 lib/modules: Add class concept to check imports
This improves the error message when an incompatible module is
imported.
2023-05-06 18:29:03 +02:00
Robert Hensing
3633bf98be lib/modules.nix: Make some functions private
The supposedly public nature of these functions has been holding
back module system maintenance, while usages of these functions
are expected to be rare. If used anywhere, presumably they're
emulating module system behavior because some use case isn't supported
properly. We should try to support such a use case directly, if it
even exists.
2023-05-06 18:29:03 +02:00
Carl Thomé
f46411763a Merge branch 'enable-yapsy-tests' into enable-nikola-on-macos 2023-05-06 18:23:57 +02:00
Carl Thomé
078a4801bf python3Packages.nikola: enable on darwin 2023-05-06 18:23:07 +02:00
Robert Hensing
fe15279390 lib/modules.nix: Use explicit exports 2023-05-06 18:22:51 +02:00
Robert Hensing
e7e64233c9 lib/tests/modules.sh: Unload implicit modules
I had some trouble understanding this. Let's try to keep new tests
a bit more stateless and explicit.
2023-05-06 18:22:50 +02:00
Carl Thomé
5c5a360e08 python3Packages.yapsy: use pytest and enable darwin 2023-05-06 17:55:42 +02:00
Sandro Jäckel
91158208e4
nodePackages.aliases: add missing date comments 2023-05-06 17:51:37 +02:00
maxine
9f0fa3dcc8
Merge pull request #230349 from SebTM/update/1password_beta_8106-20 2023-05-06 17:51:23 +02:00
teutat3s
60737bc2d1
nodePackages.manta: convert to buildNpmPackage
Renamed package to node-manta, because manta is already taken
2023-05-06 17:51:19 +02:00
teutat3s
7048a87e3c
nodePackages.triton: convert to buildNpmPackage 2023-05-06 17:50:38 +02:00
Sandro
0a131c1302
Merge pull request #229512 from ehllie/antora
antora: repackage using buildNpmPackage
2023-05-06 17:48:16 +02:00
Fabian Affolter
519582d810 kubescape: 2.3.0 -> 2.3.1
Diff: https://github.com/kubescape/kubescape.git/compare/refs/tags/v2.3.0...v2.3.1

Changelog: https://github.com/kubescape/kubescape/releases/tag/v2.3.1
2023-05-06 17:44:56 +02:00
Fabian Affolter
c9581eaf43 dnsrecon: 1.1.3 -> 1.1.4
Diff: https://github.com/darkoperator/dnsrecon/compare/1.1.3...1.1.4
2023-05-06 17:30:32 +02:00
Fabian Affolter
dbfef0611b
Merge pull request #230332 from fabaff/publicsuffixlist-bump
python311Packages.publicsuffixlist: 0.10.0.20230429 -> 0.10.0.20230506
2023-05-06 17:28:06 +02:00
Azat Bahawi
f7491d79a5
Merge pull request #228852 from r-ryantm/auto-update/soju
soju: 0.5.2 -> 0.6.1
2023-05-06 18:19:42 +03:00
Kira Bruneau
4c713a5e90 texlab: 5.5.0 -> 5.5.1 2023-05-06 11:12:12 -04:00
amesgen
dc6fdb6af3
i3status-rust: 0.31.1 -> 0.31.2 2023-05-06 17:02:04 +02:00
Rick van Schijndel
5e2d479540
Merge pull request #229874 from mcnesium/fix_ambig_char
fix ambiguous unicode characters
2023-05-06 16:54:54 +02:00
Rick van Schijndel
67486d98ab
Merge pull request #230011 from spwhitt/remove-spwhitt
Remove myself as maintainer
2023-05-06 16:38:40 +02:00
Sebastian Sellmeier
ca169a299d
_1password-gui: 8.10.5-10.BETA -> 8.10.6-20.BETA 2023-05-06 16:38:27 +02:00
Rick van Schijndel
a0b2bb9cc7
Merge pull request #230025 from aaronjheng/v8
v8_8_x: remove
2023-05-06 16:37:46 +02:00
Fabian Affolter
d69661180d
Merge pull request #230333 from fabaff/mypy-boto3-s3-bump
python311Packages.mypy-boto3-s3: 1.26.116 -> 1.26.127
2023-05-06 16:34:27 +02:00
Fabian Affolter
310ba2b5c0
Merge pull request #230326 from fabaff/transmission-rpc-bump
python311Packages.transmission-rpc: 4.2.0 -> 4.2.1
2023-05-06 16:34:16 +02:00
Danilo Reyes
ee18e6dd4b furtherance: 1.6.0 -> 1.7.0 2023-05-06 08:32:32 -06:00
Nick Cao
cdc9bcb4a9
Merge pull request #230338 from figsoda/cargo-careful
cargo-careful: 0.3.3 -> 0.3.4
2023-05-06 22:30:07 +08:00
Nick Cao
67b82a4044
Merge pull request #230337 from figsoda/cargo-tally
cargo-tally: 1.0.25 -> 1.0.26
2023-05-06 22:29:45 +08:00
Nick Cao
1f73c538e3
Merge pull request #230335 from r-ryantm/auto-update/kube-router
kube-router: 1.5.3 -> 1.5.4
2023-05-06 22:29:08 +08:00
Ilya
32fc1ceac6
qucs-s: 0.0.22 -> 1.0.2 (#223378)
* qucs-s: 0.0.22->1.0.1 (including Qt4=>Qt5)

* qucs-s: Qt5->Qt6

* qucs-s: add qtwayland input as recommended for Qt6

Co-authored-by: Tungsten842 <quantmint@protonmail.com>

* qucs-s 1.0.1->1.0.2

---------

Co-authored-by: Tungsten842 <quantmint@protonmail.com>
2023-05-06 16:28:29 +02:00
Mahmoud Ayman
4a1e9009ad
anki-bin: add new dependencies 2023-05-06 17:26:19 +03:00
Nick Cao
54b777d451
Merge pull request #230328 from fabaff/aeppl-bump
python310Packages.aeppl: 0.1.3 -> 0.1.4
2023-05-06 22:25:13 +08:00
Sebastián Zaffarano
18a9f60cc4
insomnia: 2022.7.5 -> 2023.2.0 2023-05-06 16:24:20 +02:00