summaryrefslogtreecommitdiff
path: root/lib/path/default.nix (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lib/path: properly handle /. in hasStorePathPrefixMikael Voss2025-04-021-1/+1
|
* lib/path: allow CA paths in hasStorePathPrefixMikael Voss2025-03-051-1/+7
|
* Format: lib/path.nixJohannes Kirschbauer2025-02-121-9/+0
|
* Docs: migrate format of comments to doc-commentsJohannes Kirschbauer2025-02-121-167/+324
|
* treewide: format all inactive Nix filesSilvan Mosberger2024-12-101-79/+91
| | | | | | | | | | | | | | | | | | | | | | 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
* lib.path.hasStorePathPrefix: initSilvan Mosberger2023-12-131-0/+81
| | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* lib: Take advantage of section descriptionsSilvan Mosberger2023-11-201-1/+2
| | | | See https://github.com/nix-community/nixdoc/releases/tag/v2.6.0
* lib.path: Add argument docs when missingSilvan Mosberger2023-08-081-1/+4
|
* lib.path: Indent comments the sameSilvan Mosberger2023-08-081-146/+150
|
* lib.path: Make documentation more uniformSilvan Mosberger2023-08-081-27/+26
| | | | | | | - Always have a trailing dot after sentences - Link more things - Fix some formatting - Use `append` instead of `+ ("/"`
* Merge pull request #242695 from tweag/lib.path.subpath.componentsRobert Hensing2023-08-041-0/+31
|\ | | | | `lib.path.subpath.components`: init
| * lib.path.subpath.components: initSilvan Mosberger2023-07-261-0/+31
| | | | | | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* | lib.path.subpath.isValid: Add definition of a subpathSilvan Mosberger2023-07-261-0/+3
| | | | | | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* | lib.path.splitRoot: initSilvan Mosberger2023-07-261-0/+46
| | | | | | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* | lib.path.removePrefix: initSilvan Mosberger2023-07-101-0/+53
|/
* lib.path.hasPrefix: initSilvan Mosberger2023-06-151-0/+63
|
* lib.path.append: Add a lawSilvan Mosberger2023-04-051-0/+6
| | | | | | | | | | | | | | | | | 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)
* lib.path.subpath.join: initSilvan Mosberger2023-02-131-0/+77
| | | | This function can be used to safely join subpaths together
* lib.path.append: initSilvan Mosberger2023-01-181-0/+47
| | | | | This function can be used to append strings to Nix path values in a safe way.
* lib.path: Minor improvementsSilvan Mosberger2023-01-181-7/+16
| | | | | | | | - 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
* lib.path.subpath.normalise: initSilvan Mosberger2023-01-031-0/+143
|
* lib.path.subpath.isValid: initSilvan Mosberger2023-01-031-0/+75
The first path library function