about summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
...
* | acc: init at 1.60Emily Trau2023-11-26
|/
* lib.systems.elaborate: fix passing `rust`Alyssa Ross2023-11-24
| | | | | | | | | | | | | | | | | | | | | Usually, attributes passed explicitly to elaborate take precedence over the elaborated ones, but since we also elaborate the nested "rust" attrset, we need to push that one level down, so the rest of "rust" is still filled in if you just pass { rust = { config = ... } }. I've had to drop the assertion that checked that at most one of "rust" and "rustc" was part of the un-elaborated system, because doing this broke passing an elaborated system in, which should be idempotent. For the same reason, I've also had to make it possible for rust.rustcTargetSpec to be passed in. Otherwise, on the second call, since platform was filled in by the first, the custom target file would be constructed. The only other way to avoid this would be to compare the platform attrs to all built in Rust targets to check it wasn't one of those, and that isn't feasible. Fixes: e3e57b8f1885 ("lib.systems: elaborate Rust metadata")
* Merge pull request #266362 from tweag/fileset.fileFilter-extSilvan Mosberger2023-11-24
|\ | | | | `lib.fileset.fileFilter`: Predicate attribute for file extension
| * lib.fileset.fileFilter: Predicate attribute for file extensionSilvan Mosberger2023-11-23
| |
* | Merge pull request #265964 from tweag/fileset.optionalSilvan Mosberger2023-11-22
|\ \ | | | | | | `lib.fileset.maybeMissing`: init
| * | lib.fileset: Document decision for strict existence checksSilvan Mosberger2023-11-22
| | | | | | | | | | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| * | lib.fileset.maybeMissing: initSilvan Mosberger2023-11-20
| |/
* / 24.05 is Uakarifigsoda2023-11-21
|/
* Merge pull request #268619 from tweag/lib-descriptionsSilvan Mosberger2023-11-20
|\ | | | | lib: Take advantage of section descriptions
| * lib: Take advantage of section descriptionsSilvan Mosberger2023-11-20
| | | | | | | | See https://github.com/nix-community/nixdoc/releases/tag/v2.6.0
* | lib.fileset: Re-order to match reference overviewSilvan Mosberger2023-11-19
| |
* | lib.fileset: Add overview section to reference docsSilvan Mosberger2023-11-19
|/
* Merge pull request #268520 from tweag/fileset-minor-changesSilvan Mosberger2023-11-19
|\ | | | | `lib.fileset`: Minor changes
| * lib.fileset: Minor changesSilvan Mosberger2023-11-19
| | | | | | | | | | | | | | - Make fromSource's missing file error message more consistent with others, and add a test for it - Indent some function arguments - Fix an internal type
* | lib.fileset: Move introduction section above the functionsSilvan Mosberger2023-11-19
|/ | | | | | Previously the introductory section and the function listings were in different places. But now nixdoc supports having them together with https://github.com/nix-community/nixdoc/pull/70!
* Merge pull request #266443 from amjoseph-nixpkgs/pr/lib-tests-no-aws-sdkSilvan Mosberger2023-11-19
|\
| * lib.tests: build nix without flaky aws-sdk-cppAdam Joseph2023-11-18
| | | | | | | | | | | | | | | | | | | | 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.
* | Merge master into staging-nextgithub-actions[bot]2023-11-16
|\ \
| * | lib.fileset.gitTracked: Better error in pure evalSilvan Mosberger2023-11-16
| | |
| * | lib.fileset.gitTrackedWith: Introduce recurseSubmodules parameterSilvan Mosberger2023-11-16
| | |
| * | lib.fileset.gitTracked/gitTrackedWith: initSilvan Mosberger2023-11-16
| | | | | | | | | | | | | | | A configuration parameter for gitTrackedWith will be introduced in the next commit
* | | Merge branch 'master' into staging-nextVladimír Čunát2023-11-16
|\| |
| * | Merge pull request #267384 from tweag/fileset.fileFilter-path2Robert Hensing2023-11-16
| |\ \ | | | | | | | | `fileset.fileFilter`: Restrict second argument to paths
| | * | lib.fileset.fileFilter: Restrict second argument to pathsSilvan Mosberger2023-11-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While this change is backwards-incompatible, I think it's okay because: - The `fileFilter` function is not yet in a stable NixOS release, it was only merged about [a month ago](https://github.com/NixOS/nixpkgs/pull/257356). - All public uses of the function on GitHub only pass a path - Any `fileFilter pred fileset` can also be expressed as `intersection fileset (fileFilter pred path)` without loss of functionality. - This is furthermore pointed out in the new error message when a file set is passed
* | | | Merge branch 'master' into staging-nextVladimír Čunát2023-11-15
|\| | |
| * | | Merge pull request #239722 from Stunkymonkey/lib-allUniqueSilvan Mosberger2023-11-15
| |\ \ \ | | |/ / | |/| | lib.lists.allUnique: init
| | * | lib.lists.allUnique: initFelix Buehler2023-11-14
| | | |
| * | | Merge pull request #267381 from tweag/fileset.fileFilter-pathSilvan Mosberger2023-11-15
| |\ \ \ | | | | | | | | | | `fileset.fileFilter`: Don't run predicate unnecessarily
| | * | | lib.fileset.fileFilter: Don't run predicate unnecessarilySilvan Mosberger2023-11-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before: nix-repl> fileset.trace (fileset.fileFilter (file: builtins.trace file.name false) ./default.nix) trace: README.md trace: benchmark.sh trace: default.nix trace: internal.nix trace: mock-splitRoot.nix trace: tests.sh After: nix-repl> fileset.trace (fileset.fileFilter (file: builtins.trace file.name false) ./default.nix) trace: default.nix
| | * | | lib.fileset.fileFilter: Minor cleanups and more testsSilvan Mosberger2023-11-14
| | | | |
* | | | | Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt2023-11-14
|\| | | | | | | | | | | | | | | | | | | | | | | | Conflicts: - pkgs/development/libraries/gdcm/default.nix
| * | | | Merge pull request #263059 from DanielSidhion/add-doc-conventionSilvan Mosberger2023-11-14
| |\ \ \ \ | | | | | | | | | | | | doc: commit header convention for documentation changes
| | * | | | doc: separate commit header conventions for each area, info on docs changes.DS2023-11-13
| | | |_|/ | | |/| |
* | | | | Merge master into staging-nextgithub-actions[bot]2023-11-14
|\| | | |
| * | | | Merge pull request #265710 from ShamrockLee/lib-copy-function-argsSilvan Mosberger2023-11-14
| |\ \ \ \ | | | | | | | | | | | | lib.mirrorFunctionArgs: init
| | * | | | lib.makeOverridable: simplify function arguments preservationYueh-Shun Li2023-11-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rename temporary variable copyArgs -> mirrorArgs. Use lib.mirrorFunctionArgs to define `mirrorArgs`. Apply mirrorArgs also to the returned function.
| | * | | | lib.mirrorFunctionArgs: initYueh-Shun Li2023-11-07
| | | | | | | | | | | | | | | | | | | | | | | | Co-authored-by: Silvan Mosberger <github@infinisil.com>
| * | | | | lib.fileset: Very minor changesSilvan Mosberger2023-11-13
| | |_|_|/ | |/| | |
* | | | | Merge master into staging-nextgithub-actions[bot]2023-11-11
|\| | | |
| * | | | treewide: fix redirected and broken URLsAnthony Roussel2023-11-11
| | | | | | | | | | | | | | | | | | | | Using the script in maintainers/scripts/update-redirected-urls.sh
* | | | | Merge staging-next into staginggithub-actions[bot]2023-11-11
|\| | | |
| * | | | Merge pull request #261732 from tweag/fileset.fromSourceRobert Hensing2023-11-10
| |\ \ \ \ | | |_|_|/ | |/| | | `lib.fileset.fromSource`: init
| | * | | lib.fileset.toSource: Mention fromSource in errorsSilvan Mosberger2023-11-08
| | | | |
| | * | | lib.fileset.fromSource: initSilvan Mosberger2023-11-08
| | | | |
| | * | | lib.fileset: Split out internal test helperSilvan Mosberger2023-11-08
| | | | |
* | | | | Merge staging-next into staginggithub-actions[bot]2023-11-10
|\| | | |
| * | | | Merge pull request #266349 from tweag/fileset/cleanupsSilvan Mosberger2023-11-09
| |\ \ \ \ | | | | | | | | | | | | Minor `lib.fileset` cleanups
| | * | | | lib.fileset: Remove unused bindingsSilvan Mosberger2023-11-09
| | | | | | | | | | | | | | | | | | | | | | | | Thanks nixd!
| | * | | | lib.fileset: Make error messages more uniformSilvan Mosberger2023-11-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just minor changes like: - Always using "X is a Y, but it should be Z" - "X is a path that does not exist" rather than "X does not exist" - Always using multi-line strings for errors - Always quoting string-like values and not quoting path-like values - But do quote filesystem roots. Even though they're paths, they might be very small, good to have quotes to know the start/end - Capitalise the first word - Distinguish root vs filesystem root more
| | * | | | lib.fileset: Remove nixdoc workaroundSilvan Mosberger2023-11-08
| | | |_|/ | | |/| | | | | | | | | | | | This problem was fixed in https://github.com/nix-community/nixdoc/pull/81 which is included in version 2.5.1, which is now used in Nixpkgs