| Commit message (Expand) | Author | Age | Files | Lines |
| * | Merge pull request #278777 from tweag/fix-evals•••`lib.callPackageWith`: Use abort again instead of throw and fix evaluation errors caused by it | Silvan Mosberger | 2024-01-08 | 1 | -1/+5 |
| |\ |
|
| | * | lib.callPackageWith: Use abort, not throw•••This reverts f8ea911f7c4e44b167d4b1b51f6d00ebd93e1ed1, see also https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594
| Silvan Mosberger | 2024-01-07 | 1 | -1/+5 |
| * | | lib/systems: add exec format inspection attrs•••Most of the time when we do a patchelf conditional on
hostPlatform.isLinux, what we really mean is hostPlatform.isElf.
Now that we are starting to support BSDs, this is becoming more important.
| Ryan Burns | 2024-01-02 | 1 | -0/+3 |
| |/ |
|
| * | Merge pull request #276271 from hercules-ci/modules-types-description-nonRest...•••lib.types: Improve descriptions of composed types that have commas | Robert Hensing | 2023-12-30 | 2 | -3/+31 |
| |\ |
|
| | * | lib.types: Improve descriptions of composed types that have commas•••Type: either ints.positive (enum ["auto"])
Before: positive integer, meaning >0 or value "auto" (singular enum)
After: positive integer, meaning >0, or value "auto" (singular enum)
| Robert Hensing | 2023-12-23 | 2 | -3/+31 |
| * | | lib/licenses: add missing spdxids | jopejoe1 | 2023-12-26 | 1 | -1/+8 |
| |/ |
|
| * | Merge pull request #272083 from tweag/lib-contrib•••lib: Add contribution guidelines | Silvan Mosberger | 2023-12-19 | 1 | -0/+63 |
| |\ |
|
| | * | lib: Add contribution guidelines•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
| Silvan Mosberger | 2023-12-05 | 1 | -0/+63 |
| * | | Merge pull request #273893 from tweag/fileset.gitTracked-storeDir•••`lib.fileset.gitTracked`: Support out-of-tree builds | Silvan Mosberger | 2023-12-19 | 3 | -57/+125 |
| |\ \ |
|
| | * | | Remove --simulate-pure-eval | Silvan Mosberger | 2023-12-19 | 1 | -36/+18 |
| | * | | lib.fileset.gitTracked: Support out-of-tree builds | Silvan Mosberger | 2023-12-19 | 3 | -6/+86 |
| | * | | lib.fileset.fetchGit: Refactoring | Silvan Mosberger | 2023-12-19 | 1 | -18/+24 |
| * | | | Merge pull request #270537 from 9999years/packagesFromDirectory•••lib.packagesFromDirectoryRecursive: init | Silvan Mosberger | 2023-12-19 | 14 | -1/+205 |
| |\ \ \ |
|
| | * | | | lib.packagesFromDirectoryRecursive: init•••Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com>
| Rebecca Turner | 2023-12-19 | 14 | -1/+205 |
| | | |/
| |/| |
|
| * | | | lib: `modules.sh` should check JSON output for predictability•••Currently, the `lib/tests/modules.sh` test checks the output of
`nix-instantiate --eval` without `--json`, which outputs an unspecified
human-readable format.
This patch modifies `modules.sh` to use the `--json` output instead, to
be robust against future changes to `nix-instantiate` output.
| Rebecca Turner | 2023-12-19 | 4 | -17/+24 |
| * | | | lib.generators: made toLua accept derivations too•••While trying to extend generateLuarocksConfig, I had infinite loops caused by toLua considering derivations as attrSets
| Matthieu Coudron | 2023-12-15 | 1 | -0/+2 |
| * | | | lib/tests/release.nix: temporary reference to pkgs/test/release•••This commit temporarily adds pkgs/test/release to the
lib/tests/release.nix test suite, because ofborg already knows about
that entry point.
We should move the list of test entry points out of ofborg and into
a central place in nixpkgs:
https://github.com/NixOS/nixpkgs/issues/272591
Once we do that we won't need to have this ugly kludge in an
inappropriate place.
| Adam Joseph | 2023-12-15 | 1 | -1/+13 |
| * | | | treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobs | Adam Joseph | 2023-12-15 | 1 | -0/+1 |
| * | | | Merge pull request #269551 from tejing1/nixos-stub-ld•••nixos/stub-ld: init module | Robert Hensing | 2023-12-13 | 1 | -0/+7 |
| |\ \ \ |
|
| | * | | | lib.systems.elaborate: add libDir attribute | Jeff Huffman | 2023-12-03 | 1 | -0/+7 |
| | |/ / |
|
| * | | | Merge pull request #273704 from adisbladis/lib-getexe-efficiency•••lib.getExe: Make more efficient | Silvan Mosberger | 2023-12-13 | 1 | -19/+15 |
| |\ \ \ |
|
| | * | | | lib.getExe: Make more efficient | adisbladis | 2023-12-12 | 1 | -19/+15 |
| * | | | | Merge pull request #274022 from hercules-ci/doc-attrsets-operators•••lib/attrsets: Document and link Nix language operators | Silvan Mosberger | 2023-12-13 | 1 | -0/+24 |
| |\ \ \ \
| |_|_|/
|/| | | |
|
| | * | | | lib/attrsets: Document and link Nix language operators | Robert Hensing | 2023-12-13 | 1 | -0/+24 |
| * | | | | lib.path.hasStorePathPrefix: init•••Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| Silvan Mosberger | 2023-12-13 | 2 | -1/+110 |
| * | | | | Merge pull request #273664 from tweag/fileset.gitTracked-improvements•••`lib.fileset.gitTracked,gitTrackedWith`: Minor improvements | Silvan Mosberger | 2023-12-13 | 3 | -41/+56 |
| |\ \ \ \
| |_|/ /
|/| | | |
|
| | * | | | lib.fileset.gitTracked: Improve error when passing files | Silvan Mosberger | 2023-12-11 | 2 | -0/+8 |
| | * | | | lib.fileset: Refactor gitTracked and gitTrackedWith•••Introduce an internal function for them to share more behavior.
This makes future changes easier.
| Silvan Mosberger | 2023-12-11 | 2 | -41/+48 |
| | | |/
| |/| |
|
| * | | | Merge pull request #273473 from adisbladis/lib-isConvertibleToString-static-list•••lib.isConvertibleToString: Statically compute types list | Silvan Mosberger | 2023-12-11 | 1 | -2/+4 |
| |\ \ \ |
|
| | * | | | lib.isConvertibleToString: Statically compute types list | adisbladis | 2023-12-11 | 1 | -2/+4 |
| * | | | | Merge pull request #273470 from adisbladis/lib-tohexstring-static-values•••lib.toHexString: Statically compute hexDigits attrset | Silvan Mosberger | 2023-12-11 | 1 | -16/+14 |
| |\ \ \ \ |
|
| | * | | | | lib.toHexString: Statically compute hexDigits attrset | adisbladis | 2023-12-11 | 1 | -16/+14 |
| | |/ / / |
|
| * | | | | Merge pull request #273474 from adisbladis/lib-cmakeOptionType-static-list•••lib.cmakeOptionType: Statically compute types list | Silvan Mosberger | 2023-12-11 | 1 | -6/+7 |
| |\ \ \ \ |
|
| | * | | | | lib.cmakeOptionType: Statically compute types list | adisbladis | 2023-12-11 | 1 | -6/+7 |
| | |/ / / |
|
| * | | | | Merge pull request #273467 from adisbladis/lib-pipe-no-let•••lib.pipe: Avoid creating a scope | Silvan Mosberger | 2023-12-11 | 1 | -3/+1 |
| |\ \ \ \ |
|
| | * | | | | lib.pipe: Avoid creating scopes | adisbladis | 2023-12-11 | 1 | -3/+1 |
| | |/ / / |
|
| * | | | | Merge pull request #273004 from hercules-ci/attrset-path-longest-prefix•••lib.attrsets.longestValidPathPrefix: init | Robert Hensing | 2023-12-11 | 2 | -0/+117 |
| |\ \ \ \
| | |_|/
| |/| | |
|
| | * | | | lib.attrsets.hasAttrByPath: Document law and laziness, and test it | Robert Hensing | 2023-12-08 | 2 | -0/+12 |
| | * | | | lib.attrsets.longestValidPathPrefix: init•••Allows finding the most specific path that exists.
This is useful for error messages relating to attribute paths.
| Robert Hensing | 2023-12-08 | 2 | -0/+105 |
| * | | | | Merge pull request #257100 from Ma27/version-info-lib•••flake: fix `lib.trivial.version` when used from a flake | Robert Hensing | 2023-12-11 | 3 | -3/+40 |
| |\ \ \ \
| |_|/ /
|/| | | |
|
| | * | | | flake/version overlay: review fixes•••* Improves the comments of `lib/flake-version-info.nix` and drops the
`__`-prefix from the filename.
* `lib'` -> `lib0` in `nixpkgs/lib`.
* Drop the declaration of `trivial.version` in the overlay because this
declaration already uses the final expressions of `versionSuffix` and
`release` now.
* No need to fall back to `self.lastModified` anymore, this was a
workaround for pre2.4 Nix.
Co-authored-by: Robert Hensing <robert@roberthensing.nl>
Co-authored-by: Silvan Mosberger <contact@infinisil.com>
| Maximilian Bosch | 2023-12-10 | 3 | -19/+22 |
| | * | | | lib/trivial: drop `rec` in favor of `lib` fixpoint•••That way each expression uses the final version of other lib.trivial
declarations.
For instance, when replacing `versionSuffix` with the string `"fnord"`
in a lib overlay, `trivial.version` uses `"fnord"` as suffix now rather
than `pre-git`.
| Maximilian Bosch | 2023-12-10 | 1 | -2/+14 |
| | * | | | flake: also provide proper version info for lib's flake•••This effectively means that
nixpkgs$ nix eval ./lib#lib.trivial.version
"23.11.20231020.ee0d6b5"
now gives meaningful results as well.
See https://github.com/NixOS/nixpkgs/pull/257100#discussion_r1352075369
for the discussion around this.
| Maximilian Bosch | 2023-12-09 | 2 | -1/+23 |
| | |/ / |
|
| * | | | lib.strings: Dont create scopes for getName/getVersion•••We can create the `parse` function in a scope one level up to avoid recomputing it every time.
| adisbladis | 2023-12-11 | 1 | -12/+12 |
| * | | | Merge pull request #272709 from hercules-ci/module-system-test-pr-131205•••lib/modules: Test optionless module errors from #131205 | Maximilian Bosch | 2023-12-10 | 4 | -0/+36 |
| |\ \ \ |
|
| | * | | | lib/modules: Clarify test assertions | Robert Hensing | 2023-12-09 | 1 | -0/+3 |
| | * | | | lib/modules: Test optionless module errors from #131205 | Robert Hensing | 2023-12-09 | 4 | -0/+33 |
| | | |/
| |/| |
|
| * | | | Merge pull request #272183 from infinisil/nixpkgs-reference•••doc: Rename to Nixpkgs reference manual and restate purpose | Robert Hensing | 2023-12-10 | 1 | -1/+1 |
| |\ \ \ |
|
| | * | | | doc: Rename to Nixpkgs reference manual and state purpose•••For the time being, we're moving towards https://nix.dev/ containing
all tutorials and guides. The Nixpkgs manual is reinforced to be a
_reference_ manual. While it's not just reference for now, that's what
the docs team is working towards.
This commits rewrites the Nixpkgs manual introduction to reflect that
and point to some more useful links. The contribution docs are updated
similarly so it's not missed.
Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
| Silvan Mosberger | 2023-12-08 | 1 | -1/+1 |
| * | | | | Merge pull request #272764 from tweag/anyBool•••lib.types.anyBool: init | Robert Hensing | 2023-12-10 | 3 | -0/+36 |
| |\ \ \ \
| |_|_|/
|/| | | |
|