about summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
* Merge branch 'optionalDrvAttr'Shea Levy2024-02-02
|\
| * lib: Add optionalDrvAttr to conditionally set drv attributes.Shea Levy2024-02-02
| | | | | | | | | | | | This allows for adding new, conditionally set, derivation attributes to an existing derivation without changing any output paths in the case where the condition is not met.
* | Merge pull request #285301 from ibbem/gitTracked-shallowSilvan Mosberger2024-02-02
|\ \ | |/ |/| lib.fileset.gitTracked: Allow clones of shallow repositories
| * lib.fileset.gitTracked: Allow clones of shallow repositoriesibbem2024-02-01
| | | | | | | | | | | | | | | | | | | | The only reason shallow clones are not the default in `builtins.fetchGit` is that `revCount` can't be provided when cloning a shallow repository. However, `revCount` isn't used or exposed by `lib.fileset`. Hence, allowing cloning shallow repositories makes `gitTracked` more general without any drawbacks. Co-authored-by: Silvan Mosberger <github@infinisil.com>
* | Merge pull request #284829 from deemp/masterRobert Hensing2024-01-30
|\ \ | |/ |/| types.nix: fix nonEmptyListOf
| * feat: add test for nonEmptyListOf submoduleDanila Danko2024-01-30
| |
| * types.nix: fix nonEmptyListOfDanila Danko2024-01-29
| |
* | lib/trivial: bump oldestSupportedRelease to 23.11figsoda2024-01-29
|/
* licenses: add Creative Commons Attribution 2.0Vincenzo Mantova2024-01-27
|
* lib.system.inspect: add wasm32 to isILP32Adam Joseph2024-01-18
| | | | | | | | According to the WebAssembly design doc, wasm32 is an ILP32 ABI like x32, mips64n32, and aarch64_ilp32 (Apple Watch). This commits adds it to the predicate. https://github.com/WebAssembly/design/blob/1319968ca53fb5c7e7ea6cc210c7b0ed46566a45/CAndC%2B%2B.md?plain=1#L16
* Merge pull request #248220 from infinisil/document-extendsSilvan Mosberger2024-01-12
|\ | | | | Improve the documentation of `lib.extends` and how it relates to overlays
| * lib.fixedPoints.extends: Doc improvementsSilvan Mosberger2023-09-28
| | | | | | | | Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
| * lib.fixedPoints.extends: Refactor implementation and document argumentsSilvan Mosberger2023-08-10
| | | | | | | | | | | | | | | | | | | | - Better names: - self -> final - super -> prev - rattrs -> f - f -> overlay - Add documentation to the function arguments - Add some spacing
| * lib.fixedPoints.extends: Add type and examplesSilvan Mosberger2023-08-10
| |
| * lib.fixedPoints.extends: Improve documentationSilvan Mosberger2023-08-10
| | | | | | | | The previous one was unnecessarily confusing.
* | Merge pull request #278777 from tweag/fix-evalsSilvan Mosberger2024-01-08
|\ \ | | | | | | `lib.callPackageWith`: Use abort again instead of throw and fix evaluation errors caused by it
| * | lib.callPackageWith: Use abort, not throwSilvan Mosberger2024-01-07
| | | | | | | | | | | | This reverts f8ea911f7c4e44b167d4b1b51f6d00ebd93e1ed1, see also https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594
* | | lib/systems: add exec format inspection attrsRyan Burns2024-01-02
|/ / | | | | | | | | | | 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.
* | Merge pull request #276271 from ↵Robert Hensing2023-12-30
|\ \ | | | | | | | | | | | | hercules-ci/modules-types-description-nonRestrictiveClause lib.types: Improve descriptions of composed types that have commas
| * | lib.types: Improve descriptions of composed types that have commasRobert Hensing2023-12-23
| | | | | | | | | | | | | | | | | | 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)
* | | lib/licenses: add missing spdxidsjopejoe12023-12-26
|/ /
* | Merge pull request #272083 from tweag/lib-contribSilvan Mosberger2023-12-19
|\ \ | | | | | | lib: Add contribution guidelines
| * | lib: Add contribution guidelinesSilvan Mosberger2023-12-05
| | | | | | | | | | | | Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
* | | Merge pull request #273893 from tweag/fileset.gitTracked-storeDirSilvan Mosberger2023-12-19
|\ \ \ | | | | | | | | `lib.fileset.gitTracked`: Support out-of-tree builds
| * | | Remove --simulate-pure-evalSilvan Mosberger2023-12-19
| | | |
| * | | lib.fileset.gitTracked: Support out-of-tree buildsSilvan Mosberger2023-12-19
| | | |
| * | | lib.fileset.fetchGit: RefactoringSilvan Mosberger2023-12-19
| | | |
* | | | Merge pull request #270537 from 9999years/packagesFromDirectorySilvan Mosberger2023-12-19
|\ \ \ \ | | | | | | | | | | lib.packagesFromDirectoryRecursive: init
| * | | | lib.packagesFromDirectoryRecursive: initRebecca Turner2023-12-19
| | |/ / | |/| | | | | | | | | | Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com>
* | | | lib: `modules.sh` should check JSON output for predictabilityRebecca Turner2023-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | lib.generators: made toLua accept derivations tooMatthieu Coudron2023-12-15
| | | | | | | | | | | | | | | | While trying to extend generateLuarocksConfig, I had infinite loops caused by toLua considering derivations as attrSets
* | | | lib/tests/release.nix: temporary reference to pkgs/test/releaseAdam Joseph2023-12-15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobsAdam Joseph2023-12-15
| | | |
* | | | Merge pull request #269551 from tejing1/nixos-stub-ldRobert Hensing2023-12-13
|\ \ \ \ | | | | | | | | | | nixos/stub-ld: init module
| * | | | lib.systems.elaborate: add libDir attributeJeff Huffman2023-12-03
| |/ / /
* | | | Merge pull request #273704 from adisbladis/lib-getexe-efficiencySilvan Mosberger2023-12-13
|\ \ \ \ | | | | | | | | | | lib.getExe: Make more efficient
| * | | | lib.getExe: Make more efficientadisbladis2023-12-12
| | | | |
* | | | | Merge pull request #274022 from hercules-ci/doc-attrsets-operatorsSilvan Mosberger2023-12-13
|\ \ \ \ \ | |_|_|/ / |/| | | | lib/attrsets: Document and link Nix language operators
| * | | | lib/attrsets: Document and link Nix language operatorsRobert Hensing2023-12-13
| | | | |
* | | | | lib.path.hasStorePathPrefix: initSilvan Mosberger2023-12-13
| | | | | | | | | | | | | | | | | | | | Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
* | | | | Merge pull request #273664 from tweag/fileset.gitTracked-improvementsSilvan Mosberger2023-12-13
|\ \ \ \ \ | |_|/ / / |/| | | | `lib.fileset.gitTracked,gitTrackedWith`: Minor improvements
| * | | | lib.fileset.gitTracked: Improve error when passing filesSilvan Mosberger2023-12-11
| | | | |
| * | | | lib.fileset: Refactor gitTracked and gitTrackedWithSilvan Mosberger2023-12-11
| | |/ / | |/| | | | | | | | | | | | | | Introduce an internal function for them to share more behavior. This makes future changes easier.
* | | | Merge pull request #273473 from adisbladis/lib-isConvertibleToString-static-listSilvan Mosberger2023-12-11
|\ \ \ \ | | | | | | | | | | lib.isConvertibleToString: Statically compute types list
| * | | | lib.isConvertibleToString: Statically compute types listadisbladis2023-12-11
| | | | |
* | | | | Merge pull request #273470 from adisbladis/lib-tohexstring-static-valuesSilvan Mosberger2023-12-11
|\ \ \ \ \ | | | | | | | | | | | | lib.toHexString: Statically compute hexDigits attrset
| * | | | | lib.toHexString: Statically compute hexDigits attrsetadisbladis2023-12-11
| |/ / / /
* | | | | Merge pull request #273474 from adisbladis/lib-cmakeOptionType-static-listSilvan Mosberger2023-12-11
|\ \ \ \ \ | | | | | | | | | | | | lib.cmakeOptionType: Statically compute types list
| * | | | | lib.cmakeOptionType: Statically compute types listadisbladis2023-12-11
| |/ / / /
* | | | | Merge pull request #273467 from adisbladis/lib-pipe-no-letSilvan Mosberger2023-12-11
|\ \ \ \ \ | | | | | | | | | | | | lib.pipe: Avoid creating a scope