| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
| |
|
|
| |
See https://github.com/nix-community/nixdoc/releases/tag/v2.6.0
|
| |
|
|
|
|
|
|
|
|
| |
The aws-sdk-cpp tests are flaky.
Since pull requests to staging cause nix to be rebuilt, this means
that staging PRs end up getting false CI failures due to whatever is
flaky in the AWS SDK tests. Since none of our CI needs to (or
should be able to) contact AWS S3, let's just omit it all. Bonus:
the tests build way faster.
|
| |\
| |
| | |
Minor `lib.path` documentation consistency improvements
|
| | | |
|
| | | |
|
| | |
| |
| |
| |
| |
| |
| | |
- Always have a trailing dot after sentences
- Link more things
- Fix some formatting
- Use `append` instead of `+ ("/"`
|
| |/
|
|
|
|
|
| |
These statements are taken from the `lib/test/release.nix` tests,
which previously also worked on darwin.
Unblocks https://github.com/NixOS/nix/pull/8569 when backported
|
| |\
| |
| | |
`lib.path.subpath.components`: init
|
| | |
| |
| |
| | |
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
|
| | |
| |
| |
| | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
| | |
| |
| |
| | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
| | |
| |
| |
| | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
| |\ \
| | |
| | | |
`lib.path.removePrefix`: init
|
| | | | |
|
| |\ \ \
| |_|/
|/| | |
Create a Readme in `lib`
|
| | | | |
|
| | | | |
|
| | |/
|/|
| |
| |
| | |
This should help troubleshoot errors.
Fyi --eval is just a flag, not an option with a value.
|
| | | |
|
| |/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
| |
This function can be used to safely join subpaths together
|
| |\
| |
| | |
lib.path.append: init
|
| | |
| |
| |
| |
| | |
This function can be used to append strings to Nix path values in a
safe way.
|
| | |
| |
| |
| |
| |
| |
| |
| | |
- 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
|
| |/
|
|
|
|
|
|
|
| |
When "-n" is generated by the property tests, it causes `echo` to not
output the string since it's interpreted as an option. Apparently
there's no good way to print "-n" with `echo` [1], so switching to
`printf` instead
[1]: https://unix.stackexchange.com/questions/85846/how-can-i-print-n-with-echo
|
| | |
|
| | |
|
| |
|
|
| |
The first path library function
|
|
|
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>
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|