| Commit message (Expand) | Author | Age | Files | Lines |
| * | lib/path: properly handle /. in hasStorePathPrefix | Mikael Voss | 2025-04-02 | 1 | -1/+1 |
| * | lib/path: allow CA paths in hasStorePathPrefix | Mikael Voss | 2025-03-05 | 1 | -1/+7 |
| * | Format: lib/path.nix | Johannes Kirschbauer | 2025-02-12 | 1 | -9/+0 |
| * | Docs: migrate format of comments to doc-comments | Johannes Kirschbauer | 2025-02-12 | 1 | -167/+324 |
| * | treewide: format all inactive Nix files•••After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
nix-build https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
--argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
result/bin/apply-formatting $NIXPKGS_PATH
| Silvan Mosberger | 2024-12-10 | 1 | -79/+91 |
| * | lib.path.hasStorePathPrefix: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| Silvan Mosberger | 2023-12-13 | 1 | -0/+81 |
| * | lib: Take advantage of section descriptions•••See https://github.com/nix-community/nixdoc/releases/tag/v2.6.0
| Silvan Mosberger | 2023-11-20 | 1 | -1/+2 |
| * | lib.path: Add argument docs when missing | Silvan Mosberger | 2023-08-08 | 1 | -1/+4 |
| * | lib.path: Indent comments the same | Silvan Mosberger | 2023-08-08 | 1 | -146/+150 |
| * | lib.path: Make documentation more uniform•••- Always have a trailing dot after sentences
- Link more things
- Fix some formatting
- Use `append` instead of `+ ("/"`
| Silvan Mosberger | 2023-08-08 | 1 | -27/+26 |
| * | Merge pull request #242695 from tweag/lib.path.subpath.components•••`lib.path.subpath.components`: init | Robert Hensing | 2023-08-04 | 1 | -0/+31 |
| |\ |
|
| | * | lib.path.subpath.components: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| Silvan Mosberger | 2023-07-26 | 1 | -0/+31 |
| * | | lib.path.subpath.isValid: Add definition of a subpath•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| Silvan Mosberger | 2023-07-26 | 1 | -0/+3 |
| * | | lib.path.splitRoot: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| Silvan Mosberger | 2023-07-26 | 1 | -0/+46 |
| * | | lib.path.removePrefix: init | Silvan Mosberger | 2023-07-10 | 1 | -0/+53 |
| |/ |
|
| * | lib.path.hasPrefix: init | Silvan Mosberger | 2023-06-15 | 1 | -0/+63 |
| * | lib.path.append: Add a law•••With removePrefix introduced in a future commit this law can then be
used to derive
removePrefix p (append p s) == subpath.normalise s
=> (wrap with append)
append p (removePrefix p (append p s)) == append p (subpath.normalise s)
=> (append is not influenced by subpath normalisation)
append p (removePrefix p (append p s)) == append p s
=> (substitute q = append p s)
append p (removePrefix p q) == q
Not included in the docs because it's not that important, just shows
that the first statement is more general than the second one (because
this derivation doesn't work the other way)
| Silvan Mosberger | 2023-04-05 | 1 | -0/+6 |
| * | lib.path.subpath.join: init•••This function can be used to safely join subpaths together
| Silvan Mosberger | 2023-02-13 | 1 | -0/+77 |
| * | lib.path.append: init•••This function can be used to append strings to Nix path values in a
safe way.
| Silvan Mosberger | 2023-01-18 | 1 | -0/+47 |
| * | lib.path: Minor improvements•••- Use isValid when possible instead of subpathInvalidReason: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068714681
- Add documentation to function arguments
- Use newlines for error messages: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1069737602
- Add short comments for the unit test groups: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1072913051
- Slight formatting improvement for laws: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068707955
| Silvan Mosberger | 2023-01-18 | 1 | -7/+16 |
| * | lib.path.subpath.normalise: init | Silvan Mosberger | 2023-01-03 | 1 | -0/+143 |
| * | lib.path.subpath.isValid: init•••The first path library function
| Silvan Mosberger | 2023-01-03 | 1 | -0/+75 |