Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-10-01 | Merge pull request #193132 from figsoda/clean-up | figsoda | 1 | -1/+0 | |
treewide: clean up | |||||
2022-09-26 | lib/tests/maintainers.nix: remove unused binding | figsoda | 1 | -1/+0 | |
2022-09-21 | lib/modules: Fix meta duplication in shorthand syntax | Robert Hensing | 2 | -0/+22 | |
2022-09-21 | lib: Add lazyDerivation | Robert Hensing | 1 | -0/+53 | |
2022-09-17 | lib.types: Add parentheses where description is ambiguous | Robert Hensing | 1 | -0/+53 | |
2022-08-31 | Merge pull request #188289 from erikarvstedt/fix-disabled-modules-abs-paths | Robert Hensing | 2 | -0/+6 | |
lib.modules: support strings with absolute paths in `disabledModules` | |||||
2022-08-31 | lib.modules: support strings with absolute paths in `disabledModules` | Erik Arvstedt | 2 | -0/+6 | |
This is particularly useful for disabling modules defined in a flake. Example: disabledModules = [ "${flake}/modules/mymodule.nix" ]; Previously, absolute string paths were internally prepended with `modulesPath`, which caused the module filtering to fail. | |||||
2022-08-25 | lib/systems: add MicroBlaze architectures | Minijackson | 1 | -1/+1 | |
2022-06-20 | teams/maintainers list: show instructions for validating the contents | Graham Christensen | 1 | -2/+2 | |
2022-06-20 | maintainer teams: check them in lib tests | Graham Christensen | 2 | -0/+54 | |
2022-06-20 | maintainer lib test: extract maintainer module | Graham Christensen | 2 | -31/+32 | |
2022-06-20 | maintainers: remove longkeyid | Graham Christensen | 1 | -1/+0 | |
see https://dkg.fifthhorseman.net/blog/openpgp-key-ids-are-not-useful.html | |||||
2022-06-14 | lib/modules: Throw earlier when module function does not return attrs | Robert Hensing | 2 | -0/+21 | |
`m` must always be an attrset at this point. It is basically always evaluated. This will make it throw when any of the attrs is accessed, rather than just `config`. We assume that this will improve the error message in more scenarios. | |||||
2022-06-14 | lib.deferredModule: Make it properly singular | Robert Hensing | 1 | -1/+1 | |
2022-06-14 | lib.types.deferredModule: Allow path-typed module references | Robert Hensing | 2 | -3/+4 | |
2022-06-14 | lib.types.deferredModule: Improve reported location | Robert Hensing | 1 | -1/+1 | |
2022-06-14 | lib/test/modules.sh: Test deferredModule error location file | Robert Hensing | 2 | -2/+11 | |
2022-06-14 | lib.types: Add deferredModule | Robert Hensing | 2 | -0/+57 | |
2022-06-14 | lib/tests: Add submodule file propagation test | Silvan Mosberger | 2 | -0/+25 | |
2022-05-23 | Merge pull request #168374 from Ma27/special-attrs-in-with-recursion | Silvan Mosberger | 1 | -0/+15 | |
lib/generators: withRecursion: don't break attr-sets with special attrs | |||||
2022-05-17 | Merge pull request #172813 from hercules-ci/functionTo-properly | Robert Hensing | 2 | -0/+63 | |
`lib.types.functionTo` type merging and docs | |||||
2022-05-16 | Merge pull request #170561 from klemensn/types-description | Silvan Mosberger | 1 | -1/+1 | |
lib/types: Drop misleading plural from type descriptions | |||||
2022-05-15 | Revert "lib: init flakes.nix" | adisbladis | 3 | -23/+0 | |
This reverts commit PR #167947. Flakes aren't standardised and the `lib` namespace shouldn't be polluted with utilities that serve only experimental uses. | |||||
2022-05-13 | lib/tests/modules: Test functionTo submodule merging too | Robert Hensing | 2 | -8/+11 | |
2022-05-13 | lib.types.functionTo: Support type merging | Robert Hensing | 2 | -0/+60 | |
2022-05-07 | lib/strings/toShellVars: handle derivations as strings | Naïm Favier | 1 | -0/+12 | |
2022-05-02 | lib/tests/modules.sh: Fix for singular type descriptions | Robert Hensing | 1 | -1/+1 | |
2022-05-02 | Merge pull request #170090 from danth/has-infix-toString | Robert Hensing | 1 | -0/+30 | |
lib/strings: call toString within hasInfix | |||||
2022-05-02 | lib/tests: add tests for hasInfix | Daniel Thwaites | 1 | -0/+30 | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> | |||||
2022-05-01 | Merge pull request #167947 from MatthewCroughan/mc/callLocklessFlake | Artturi | 3 | -0/+22 | |
lib: add callLocklessFlake | |||||
2022-04-28 | lib.systems: add riscv{32,64} sets and filters | Alyssa Ross | 1 | -0/+2 | |
For other platforms like Intel and ARM, we can do e.g. lib.platforms.aarch64 to get only the 64-bit ARM platorms, but until now there were no equivalents for RISC-V. | |||||
2022-04-28 | lib/tests: add RISC-V test | Alyssa Ross | 1 | -0/+1 | |
2022-04-27 | lib/strings: add toShellVars | Naïm Favier | 1 | -0/+20 | |
A straightforward piece of plumbing to safely inject Nix variables into shell scripts: '' ${lib.toShellVars { inherit foo bar; }} cmd "$foo" --bar "$bar" '' | |||||
2022-04-24 | lib.types.submoduleWith: Avoid _key collisions after extendModules | Robert Hensing | 2 | -1/+46 | |
2022-04-12 | lib/tests: evaluate value from subflake with callLocklessFlake | matthewcroughan | 3 | -8/+8 | |
2022-04-12 | lib/tests: use subflake to test callLocklessFlake | matthewcroughan | 3 | -3/+16 | |
2022-04-12 | lib/tests: add test for callLocklessFlake | matthewcroughan | 1 | -0/+9 | |
2022-04-12 | lib/generators: withRecursion: don't break attr-sets with special attrs | Maximilian Bosch | 1 | -0/+15 | |
Closes #168327 The issue reported there can be demonstrated with the following expression: → nix-instantiate --eval -E "with import ./. {}; pkgs.lib.options.showDefs [ { file = \"foo\"; value = pkgs.rust.packages.stable.buildRustPackages; } ]" error: attempt to call something which is not a function but a string at /home/ma27/Projects/nixpkgs/lib/trivial.nix:442:35: 441| isFunction = f: builtins.isFunction f || 442| (f ? __functor && isFunction (f.__functor f)); | ^ 443| Basically, if a `__functor` is in an attribute-set at depth-limit, `__functor` will be set to `"<unevaluated>"`. This however breaks `lib.isFunction` which checks for a `__functor` by invoking `__functor` with `f` itself. The same issue - "magic" attributes being shadowed by `withRecursion` - also applies to others such as `__pretty`/`__functionArgs`/`__toString`. Since these attributes have a low-risk of causing a stack overflow (because these are flat attr-sets or even functions), ignoring them in `withRecursion` seems like a valid solution. | |||||
2022-04-06 | Merge pull request #164088 from ↵ | Silvan Mosberger | 1 | -0/+60 | |
Profpatsch/lib.generators-add-toINIWithGlobalSection lib.generators: add toINIWithGlobalSection | |||||
2022-04-05 | Merge pull request #165540 from Infinisil/module-args-docs | Robert Hensing | 1 | -1/+1 | |
lib/modules: Document `_module.args` | |||||
2022-04-05 | Merge pull request #166383 from hercules-ci/always-sanitize-derivation-name | Robert Hensing | 1 | -0/+5 | |
Always sanitize derivation name | |||||
2022-04-05 | lib/modules: Document _module.args | Silvan Mosberger | 1 | -1/+1 | |
Documents the _module.args option, motivated by many usages in Flakes, especially with the deprecation of extraArgs (https://github.com/NixOS/nixpkgs/commit/78ada833615d241ed76463aa5a024b614150eb4d) The documentation rendering for this option had to be handled a bit specially, since it's not declared in nixos/modules like all the other NixOS options. Co-Authored-By: pennae <github@quasiparticle.net> Co-Authored-By: Robert Hensing <robert@roberthensing.nl> | |||||
2022-04-01 | lib/tests: Add tests for levenshtein functions | Silvan Mosberger | 1 | -0/+152 | |
2022-03-31 | lib.sanitizeDerivationName: Test with unicode | Robert Hensing | 1 | -0/+5 | |
2022-03-19 | Merge pull request #147077 from Infinisil/updateAttrPaths | Robert Hensing | 1 | -0/+152 | |
Introduce `lib.updateManyAttrsByPath` | |||||
2022-03-18 | lib.attrsets: Introduce updateManyAttrsByPath | Silvan Mosberger | 1 | -0/+114 | |
2022-03-18 | lib.lists: Use builtins.groupBy for lib.groupBy | Silvan Mosberger | 1 | -1/+17 | |
builtins.groupBy is much more performant. It was introduced in https://github.com/NixOS/nix/pull/5715 | |||||
2022-03-18 | lib.attrsets: Introduce showAttrPath | Silvan Mosberger | 1 | -0/+22 | |
2022-03-17 | Merge pull request #161158 from a-m-joseph/mips64el-support-first-steps | John Ericson | 1 | -2/+2 | |
mips64el support | |||||
2022-03-16 | Merge pull request #156533 from ↵ | Silvan Mosberger | 8 | -0/+87 | |
hercules-ci/issue-146882-transparent-submodule-options lib.modules: Let module declare options directly in bare submodule |