| Commit message (Expand) | Author | Age | Files | Lines |
| * | lib/tests: Add randomized path.subpath.normalise property checksorigin/lib.path.relativeNormalise | Silvan Mosberger | 2022-12-13 | 4 | -0/+241 |
| * | lib/path.nix: Use -> instead of => for law | Silvan Mosberger | 2022-12-13 | 1 | -1/+1 |
| * | lib.path: Don't use `toPretty` for unexpected type errors | Silvan Mosberger | 2022-12-13 | 1 | -11/+5 |
| * | lib/path.*: Fix references | Silvan Mosberger | 2022-12-13 | 2 | -6/+6 |
| * | lib/path.*: Apply review suggestions•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
| Silvan Mosberger | 2022-12-13 | 2 | -28/+32 |
| * | lib.path: More efficient check for `..` components | Silvan Mosberger | 2022-12-12 | 1 | -14/+9 |
| * | lib/path.*: Address review•••Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
| Silvan Mosberger | 2022-12-12 | 2 | -131/+142 |
| * | lib.path-design.md: Address feedback•••Now calls string paths subpaths instead of relative paths everywhere,
it's also `lib.path.subpath.normalise` now
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
| Silvan Mosberger | 2022-12-09 | 3 | -77/+88 |
| * | lib.path: relativeNormalise -> relative.normalise | Silvan Mosberger | 2022-12-09 | 2 | -28/+28 |
| * | lib.path.relativeNormalise: init•••Adds a new function to normalise relative paths. This is a prerequisite
to later functions like `path.relativeJoin` and `path.append`.
| Silvan Mosberger | 2022-12-08 | 2 | -1/+220 |
| * | lib.path: init as skeleton•••Currently doesn't contain anything, future commits will add to it
| Silvan Mosberger | 2022-12-08 | 2 | -1/+6 |
| * | lib: init path-design.md document•••Adds initial work towards a `lib.path` library
Originally proposed in https://github.com/NixOS/nixpkgs/pull/200718, but has
since gone through some revisions
Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
| Silvan Mosberger | 2022-12-08 | 1 | -0/+177 |
| * | lib: Automatically generate lib.filesytem docs | Silvan Mosberger | 2022-10-26 | 1 | -18/+40 |
| * | Merge pull request #173949 from jacoblambda/fix-toInt-zero-padding•••lib: add strings.toIntBase10 to parse zero-padded strings | Robert Hensing | 2022-10-24 | 4 | -8/+160 |
| |\ |
|
| | * | lib/strings: Update docs and restructured code to improve readability of toIn... | Jacob Abel | 2022-10-23 | 3 | -22/+42 |
| | * | lib/strings: Improve error message for octal ambiguity in toInt | Jacob Abel | 2022-10-23 | 1 | -3/+2 |
| | * | lib/strings: Refactor toInt into toInt and toIntBase10 | Jacob Abel | 2022-10-23 | 4 | -21/+97 |
| | * | lib/strings: Update toInt to handle intermixed ws and zeros. Added tests | Jacob Abel | 2022-10-23 | 3 | -8/+25 |
| | * | lib/strings: allow toInt to parse zero-padded strings | Jacob Abel | 2022-10-23 | 2 | -4/+44 |
| * | | lib.normalizePath: the empty string is not a valid regex on darwin•••presumably due to using libc++'s regex lib instead of libstdc++ on linux
Fixes https://github.com/NixOS/nixpkgs/pull/177273#issuecomment-1287562800
| Guillaume Girol | 2022-10-24 | 1 | -1/+1 |
| |/ |
|
| * | Merge remote-tracking branch 'origin/master' into staging-next | Martin Weinelt | 2022-10-21 | 1 | -0/+10 |
| |\ |
|
| | * | Merge pull request #196397 from fgaz/hikounomizu/init | Sandro | 2022-10-21 | 1 | -0/+10 |
| | |\ |
|
| | | * | lib.licenses: add lal12 and lal13 | Francesco Gazzetta | 2022-10-17 | 1 | -0/+10 |
| * | | | Merge master into staging-next | github-actions[bot] | 2022-10-21 | 3 | -0/+149 |
| |\| | |
|
| | * | | lib/tests/misc: Add tests for charToInt, escapeC, and normalizePath | Daniel Olsen | 2022-10-20 | 1 | -0/+15 |
| | * | | lib.strings: Add normalizePath•••dedupes extranous /'s in filepaths
Co-authored-by: Daniel Olsen <daniel.olsen99@gmail.com>
| ajs124 | 2022-10-20 | 1 | -0/+10 |
| | * | | lib.strings: Add function to do C-style escaping | Daniel Olsen | 2022-10-20 | 1 | -0/+13 |
| | * | | lib.strings: Add function to convert character to number | Daniel Olsen | 2022-10-20 | 2 | -0/+111 |
| * | | | Merge master into staging-next | github-actions[bot] | 2022-10-20 | 1 | -0/+6 |
| |\| | |
|
| | * | | Merge pull request #193551 from OPNA2608/init/mac-fdisk | Sandro | 2022-10-19 | 1 | -0/+6 |
| | |\ \ |
|
| | | * | | licenses: Add apsl10 | OPNA2608 | 2022-10-13 | 1 | -0/+6 |
| * | | | | Merge branch 'master' into staging-next•••; Conflicts:
; pkgs/development/tools/codespell/default.nix
codespell 2.2.2 switched to pyproject & setuptools_scm:
https://github.com/codespell-project/codespell/pull/2523
| Jan Tojnar | 2022-10-19 | 3 | -7/+13 |
| |\| | | |
|
| | * | | | Merge pull request #194035 from Ma27/show-option-quoting•••lib/options/showOption: fix quoting of attr-names that are not identifiers | Robert Hensing | 2022-10-18 | 3 | -7/+13 |
| | |\ \ \
| | |_|/
| |/| | |
|
| | | * | | lib/options/showOption: fix quoting of attr-names that are not identifiers•••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.
| Maximilian Bosch | 2022-10-07 | 1 | -3/+9 |
| | | * | | lib/types: always use `<function body>` instead of `[function body]` to indic...•••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.
| Maximilian Bosch | 2022-10-07 | 2 | -4/+4 |
| * | | | | Merge staging-next into staging | github-actions[bot] | 2022-10-13 | 1 | -1/+2 |
| |\| | | |
|
| | * | | | Merge pull request #192755 from hercules-ci/lib-types-unspecified-name | Silvan Mosberger | 2022-10-13 | 1 | -1/+2 |
| | |\ \ \ |
|
| | | * | | | lib.types.unspecified: Make name match attribute name again•••@Infinisil: This isn't right, the name shouldn't be changed, but instead a description should be added
https://github.com/NixOS/nixpkgs/pull/191353#discussion_r978983401
| Robert Hensing | 2022-09-24 | 1 | -1/+2 |
| * | | | | | Merge branch 'master' into staging | Vladimír Čunát | 2022-10-13 | 1 | -5/+0 |
| |\| | | | |
|
| | * | | | | Merge pull request #193484 from wegank/gpl1-eol | Sandro | 2022-10-12 | 1 | -5/+0 |
| | |\ \ \ \ |
|
| | | * | | | | licenses: remove gpl1 | Weijia Wang | 2022-09-29 | 1 | -5/+0 |
| * | | | | | | treewide: optional -> optionals where the argument is a list•••the argument to optional should not be list
| Artturin | 2022-10-10 | 1 | -1/+1 |
| * | | | | | | Merge staging-next into staging | github-actions[bot] | 2022-10-09 | 1 | -0/+5 |
| |\| | | | | |
|
| | * | | | | | Merge master into staging-next | github-actions[bot] | 2022-10-09 | 1 | -0/+5 |
| | |\ \ \ \ \ |
|
| | | * | | | | | licenses: add libssh2 license | Weijia Wang | 2022-10-09 | 1 | -0/+5 |
| * | | | | | | | lib.closePropagation: Remove the quadratic behavior in lib.closePropagation•••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.
| Guillaume Bouchard | 2022-10-07 | 1 | -1/+30 |
| |/ / / / / / |
|
| * | | | | | | Merge remote-tracking branch 'origin/master' into staging-next | Martin Weinelt | 2022-10-05 | 1 | -0/+5 |
| |\| | | | | |
|
| | * | | | | | Merge pull request #188265 from steveeJ-forks/pr-holochain-launcher-bin | Sandro | 2022-10-03 | 1 | -0/+5 |
| | |\ \ \ \ \
| | |_|_|/ /
| |/| | | | |
|
| | | * | | | | lib.licenses: add CAL-1.0 | Stefan Junker | 2022-09-15 | 1 | -0/+5 |
| | | |/ / / |
|
| * | | | | | Merge master into staging-next | github-actions[bot] | 2022-10-02 | 6 | -17/+4 |
| |\| | | | |
|