Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2022-10-26 | lib: Automatically generate lib.filesytem docs | Silvan Mosberger | 1 | -18/+40 | |
2022-10-24 | Merge pull request #173949 from jacoblambda/fix-toInt-zero-padding | Robert Hensing | 4 | -8/+160 | |
lib: add strings.toIntBase10 to parse zero-padded strings | |||||
2022-10-24 | lib.normalizePath: the empty string is not a valid regex on darwin | Guillaume Girol | 1 | -1/+1 | |
presumably due to using libc++'s regex lib instead of libstdc++ on linux Fixes https://github.com/NixOS/nixpkgs/pull/177273#issuecomment-1287562800 | |||||
2022-10-23 | lib/strings: Update docs and restructured code to improve readability of ↵ | Jacob Abel | 3 | -22/+42 | |
toInt and toIntBase10. | |||||
2022-10-23 | lib/strings: Improve error message for octal ambiguity in toInt | Jacob Abel | 1 | -3/+2 | |
2022-10-23 | lib/strings: Refactor toInt into toInt and toIntBase10 | Jacob Abel | 4 | -21/+97 | |
2022-10-23 | lib/strings: Update toInt to handle intermixed ws and zeros. Added tests | Jacob Abel | 3 | -8/+25 | |
2022-10-23 | lib/strings: allow toInt to parse zero-padded strings | Jacob Abel | 2 | -4/+44 | |
2022-10-21 | Merge remote-tracking branch 'origin/master' into staging-next | Martin Weinelt | 1 | -0/+10 | |
2022-10-21 | Merge pull request #196397 from fgaz/hikounomizu/init | Sandro | 1 | -0/+10 | |
2022-10-21 | Merge master into staging-next | github-actions[bot] | 3 | -0/+149 | |
2022-10-20 | lib/tests/misc: Add tests for charToInt, escapeC, and normalizePath | Daniel Olsen | 1 | -0/+15 | |
2022-10-20 | lib.strings: Add normalizePath | ajs124 | 1 | -0/+10 | |
dedupes extranous /'s in filepaths Co-authored-by: Daniel Olsen <daniel.olsen99@gmail.com> | |||||
2022-10-20 | lib.strings: Add function to do C-style escaping | Daniel Olsen | 1 | -0/+13 | |
2022-10-20 | lib.strings: Add function to convert character to number | Daniel Olsen | 2 | -0/+111 | |
2022-10-20 | Merge master into staging-next | github-actions[bot] | 1 | -0/+6 | |
2022-10-19 | Merge pull request #193551 from OPNA2608/init/mac-fdisk | Sandro | 1 | -0/+6 | |
2022-10-19 | Merge branch 'master' into staging-next | Jan Tojnar | 3 | -7/+13 | |
; Conflicts: ; pkgs/development/tools/codespell/default.nix codespell 2.2.2 switched to pyproject & setuptools_scm: https://github.com/codespell-project/codespell/pull/2523 | |||||
2022-10-18 | Merge pull request #194035 from Ma27/show-option-quoting | Robert Hensing | 3 | -7/+13 | |
lib/options/showOption: fix quoting of attr-names that are not identifiers | |||||
2022-10-17 | lib.licenses: add lal12 and lal13 | Francesco Gazzetta | 1 | -0/+10 | |
2022-10-13 | Merge staging-next into staging | github-actions[bot] | 1 | -1/+2 | |
2022-10-13 | Merge pull request #192755 from hercules-ci/lib-types-unspecified-name | Silvan Mosberger | 1 | -1/+2 | |
2022-10-13 | Merge branch 'master' into staging | Vladimír Čunát | 1 | -5/+0 | |
2022-10-13 | licenses: Add apsl10 | OPNA2608 | 1 | -0/+6 | |
2022-10-12 | Merge pull request #193484 from wegank/gpl1-eol | Sandro | 1 | -5/+0 | |
2022-10-10 | treewide: optional -> optionals where the argument is a list | Artturin | 1 | -1/+1 | |
the argument to optional should not be list | |||||
2022-10-09 | Merge staging-next into staging | github-actions[bot] | 1 | -0/+5 | |
2022-10-09 | Merge master into staging-next | github-actions[bot] | 1 | -0/+5 | |
2022-10-09 | licenses: add libssh2 license | Weijia Wang | 1 | -0/+5 | |
2022-10-07 | lib.closePropagation: Remove the quadratic behavior in lib.closePropagation | Guillaume Bouchard | 1 | -1/+30 | |
The code of `lib.closePropagation` was internally using a recursion on the dependencies and returns all the derivation directly or indirectly referenced by buildInputs. `lib.closeProgation` is implemented in pure nix and uses an unique function for list which is quadratic and does "true" equality, which needs deep set comparison. Instead, we use the `builtins.genericClosure` which is implemented as a builtin and uses a more efficient sorting feature. Note that `genericClosure` needs a `key` to discriminate the values, we used the `outPath` which is unique and orderable. On benchmarks, it performs up to 15x time faster on a benchmark related to haskellPackages.ghcWithPackages. | |||||
2022-10-07 | lib/options/showOption: fix quoting of attr-names that are not identifiers | Maximilian Bosch | 1 | -3/+9 | |
Personally, I think that warnings such as warning: The option `services.redis.enable' defined in `/home/ma27/Projects/nixpkgs/test.nix@node-vm' has been renamed to `services.redis.servers..enable'. are fairly confusing because of the `..` and it's more correct to actually quote that. With this change the warning now looks like this: warning: The option `services.redis.enable' defined in `/home/ma27/Projects/nixpkgs/test.nix@node-vm' has been renamed to `services.redis.servers."".enable'. While implementing that I realized that you'd have a similar problem whenever you use attribute-names that aren't identifiers, e.g. services.nginx.virtualHosts."example.org".locations."/".invalid = 23; now results in the following error: error: The option `interactive.nodes.vm.services.nginx.virtualHosts."example.org".locations."/".invalid' does not exist. Definition values: - In `/home/ma27/Projects/nixpkgs/test.nix@node-vm': 23 Of course there are some corner-cases where this won't work: when generating the manual, you display submodules like this: services.nginx.virtualHosts.<name> Since `<name>` isn't a value, but an indicator for a submodule, it must not be quoted. This also applies to the following identifiers: * `*` for `listOf submodule` * `<function body>` for `functionTo` This might not be correct if you actually have a submodule with an attribute name called `<name>`, but I think it's an improvement over the current situation and for this you'd probably need to make even more complex changes to the module system. | |||||
2022-10-07 | lib/types: always use `<function body>` instead of `[function body]` to ↵ | Maximilian Bosch | 2 | -4/+4 | |
indicate a function inside an option structure The motivation is to have a single identifier for that. Useful for the next commit where I'll try to escape option-parts correctly (options can be any kind of strings, but unless these are Nix identifiers, they must be quoted). Since `<function body>` (or `<name>`/`*`) are special identifiers in error messages and the manual, we need a unique way to mark an option part as function call because these are not to be quoted. | |||||
2022-10-05 | Merge remote-tracking branch 'origin/master' into staging-next | Martin Weinelt | 1 | -0/+5 | |
2022-10-03 | Merge pull request #188265 from steveeJ-forks/pr-holochain-launcher-bin | Sandro | 1 | -0/+5 | |
2022-10-02 | Merge master into staging-next | github-actions[bot] | 6 | -17/+4 | |
2022-10-01 | Merge pull request #193132 from figsoda/clean-up | figsoda | 6 | -17/+4 | |
treewide: clean up | |||||
2022-09-29 | Merge master into staging-next | github-actions[bot] | 2 | -0/+13 | |
2022-09-29 | licenses: remove gpl1 | Weijia Wang | 1 | -5/+0 | |
2022-09-29 | lib/systems/default.nix: add efiArch suffixes | Ivan Nikolaenko | 1 | -0/+8 | |
Move already implemented functionality to the upper level so it could be used in a more generic way. Signed-off-by: Ivan Nikolaenko <ivan.nikolaenko@unikie.com> | |||||
2022-09-28 | lib.generators: simplify toYAML | figsoda | 1 | -1/+1 | |
2022-09-28 | Merge pull request #192650 from drupol/add-sphinx-contrib-mscgen | Martin Weinelt | 1 | -0/+5 | |
2022-09-28 | Merge staging-next into staging | github-actions[bot] | 6 | -1/+180 | |
2022-09-28 | licenses: add BOLA license | Pol Dellaiera | 1 | -0/+5 | |
2022-09-28 | Merge pull request #191540 from hercules-ci/nixosTest-modular | Robert Hensing | 6 | -1/+180 | |
nixosTest: make modular | |||||
2022-09-26 | lib/tests/maintainers.nix: remove unused binding | figsoda | 1 | -1/+0 | |
2022-09-26 | lib/types.nix: remove unused bindings | figsoda | 1 | -2/+0 | |
2022-09-26 | lib/sources.nix: remove unused binding | figsoda | 1 | -1/+0 | |
2022-09-26 | lib/options.nix: remove unused binding | figsoda | 1 | -1/+0 | |
2022-09-26 | lib/modules.nix: remove unused bindings | figsoda | 1 | -9/+1 | |
2022-09-26 | lib/generators.nix: remove unused bindings | figsoda | 1 | -2/+2 | |