Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-02-02 | Merge pull request #285301 from ibbem/gitTracked-shallow | Silvan Mosberger | 2 | -1/+31 | |
lib.fileset.gitTracked: Allow clones of shallow repositories | |||||
2024-02-01 | lib.fileset.gitTracked: Allow clones of shallow repositories | ibbem | 2 | -1/+31 | |
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> | |||||
2024-01-30 | Merge pull request #284829 from deemp/master | Robert Hensing | 3 | -0/+9 | |
types.nix: fix nonEmptyListOf | |||||
2024-01-30 | feat: add test for nonEmptyListOf submodule | Danila Danko | 2 | -0/+8 | |
2024-01-29 | types.nix: fix nonEmptyListOf | Danila Danko | 1 | -0/+1 | |
2024-01-29 | lib/trivial: bump oldestSupportedRelease to 23.11 | figsoda | 1 | -1/+1 | |
2024-01-27 | licenses: add Creative Commons Attribution 2.0 | Vincenzo Mantova | 1 | -0/+5 | |
2024-01-18 | lib.system.inspect: add wasm32 to isILP32 | Adam Joseph | 1 | -1/+2 | |
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 | |||||
2024-01-12 | Merge pull request #248220 from infinisil/document-extends | Silvan Mosberger | 1 | -23/+136 | |
Improve the documentation of `lib.extends` and how it relates to overlays | |||||
2024-01-08 | Merge pull request #278777 from tweag/fix-evals | Silvan Mosberger | 1 | -1/+5 | |
`lib.callPackageWith`: Use abort again instead of throw and fix evaluation errors caused by it | |||||
2024-01-07 | lib.callPackageWith: Use abort, not throw | Silvan Mosberger | 1 | -1/+5 | |
This reverts f8ea911f7c4e44b167d4b1b51f6d00ebd93e1ed1, see also https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594 | |||||
2024-01-02 | lib/systems: add exec format inspection attrs | Ryan Burns | 1 | -0/+3 | |
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. | |||||
2023-12-30 | Merge pull request #276271 from ↵ | Robert Hensing | 2 | -3/+31 | |
hercules-ci/modules-types-description-nonRestrictiveClause lib.types: Improve descriptions of composed types that have commas | |||||
2023-12-26 | lib/licenses: add missing spdxids | jopejoe1 | 1 | -1/+8 | |
2023-12-23 | lib.types: Improve descriptions of composed types that have commas | Robert Hensing | 2 | -3/+31 | |
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) | |||||
2023-12-19 | Merge pull request #272083 from tweag/lib-contrib | Silvan Mosberger | 1 | -0/+63 | |
lib: Add contribution guidelines | |||||
2023-12-19 | Merge pull request #273893 from tweag/fileset.gitTracked-storeDir | Silvan Mosberger | 3 | -57/+125 | |
`lib.fileset.gitTracked`: Support out-of-tree builds | |||||
2023-12-19 | Remove --simulate-pure-eval | Silvan Mosberger | 1 | -36/+18 | |
2023-12-19 | lib.fileset.gitTracked: Support out-of-tree builds | Silvan Mosberger | 3 | -6/+86 | |
2023-12-19 | Merge pull request #270537 from 9999years/packagesFromDirectory | Silvan Mosberger | 14 | -1/+205 | |
lib.packagesFromDirectoryRecursive: init | |||||
2023-12-19 | lib.packagesFromDirectoryRecursive: init | Rebecca Turner | 14 | -1/+205 | |
Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com> | |||||
2023-12-19 | lib: `modules.sh` should check JSON output for predictability | Rebecca Turner | 4 | -17/+24 | |
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. | |||||
2023-12-19 | lib.fileset.fetchGit: Refactoring | Silvan Mosberger | 1 | -18/+24 | |
2023-12-15 | lib.generators: made toLua accept derivations too | Matthieu Coudron | 1 | -0/+2 | |
While trying to extend generateLuarocksConfig, I had infinite loops caused by toLua considering derivations as attrSets | |||||
2023-12-15 | lib/tests/release.nix: temporary reference to pkgs/test/release | Adam Joseph | 1 | -1/+13 | |
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. | |||||
2023-12-15 | treewide: add __attrsFailEvaluation and __recurseIntoDerivationForReleaseJobs | Adam Joseph | 1 | -0/+1 | |
2023-12-13 | Merge pull request #269551 from tejing1/nixos-stub-ld | Robert Hensing | 1 | -0/+7 | |
nixos/stub-ld: init module | |||||
2023-12-13 | Merge pull request #273704 from adisbladis/lib-getexe-efficiency | Silvan Mosberger | 1 | -19/+15 | |
lib.getExe: Make more efficient | |||||
2023-12-13 | Merge pull request #274022 from hercules-ci/doc-attrsets-operators | Silvan Mosberger | 1 | -0/+24 | |
lib/attrsets: Document and link Nix language operators | |||||
2023-12-13 | lib/attrsets: Document and link Nix language operators | Robert Hensing | 1 | -0/+24 | |
2023-12-13 | lib.path.hasStorePathPrefix: init | Silvan Mosberger | 2 | -1/+110 | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> | |||||
2023-12-13 | Merge pull request #273664 from tweag/fileset.gitTracked-improvements | Silvan Mosberger | 3 | -41/+56 | |
`lib.fileset.gitTracked,gitTrackedWith`: Minor improvements | |||||
2023-12-12 | lib.getExe: Make more efficient | adisbladis | 1 | -19/+15 | |
2023-12-11 | lib.fileset.gitTracked: Improve error when passing files | Silvan Mosberger | 2 | -0/+8 | |
2023-12-11 | lib.fileset: Refactor gitTracked and gitTrackedWith | Silvan Mosberger | 2 | -41/+48 | |
Introduce an internal function for them to share more behavior. This makes future changes easier. | |||||
2023-12-11 | Merge pull request #273473 from adisbladis/lib-isConvertibleToString-static-list | Silvan Mosberger | 1 | -2/+4 | |
lib.isConvertibleToString: Statically compute types list | |||||
2023-12-11 | Merge pull request #273470 from adisbladis/lib-tohexstring-static-values | Silvan Mosberger | 1 | -16/+14 | |
lib.toHexString: Statically compute hexDigits attrset | |||||
2023-12-11 | Merge pull request #273474 from adisbladis/lib-cmakeOptionType-static-list | Silvan Mosberger | 1 | -6/+7 | |
lib.cmakeOptionType: Statically compute types list | |||||
2023-12-11 | Merge pull request #273467 from adisbladis/lib-pipe-no-let | Silvan Mosberger | 1 | -3/+1 | |
lib.pipe: Avoid creating a scope | |||||
2023-12-11 | Merge pull request #273004 from hercules-ci/attrset-path-longest-prefix | Robert Hensing | 2 | -0/+117 | |
lib.attrsets.longestValidPathPrefix: init | |||||
2023-12-11 | Merge pull request #257100 from Ma27/version-info-lib | Robert Hensing | 3 | -3/+40 | |
flake: fix `lib.trivial.version` when used from a flake | |||||
2023-12-11 | lib.cmakeOptionType: Statically compute types list | adisbladis | 1 | -6/+7 | |
2023-12-11 | lib.isConvertibleToString: Statically compute types list | adisbladis | 1 | -2/+4 | |
2023-12-11 | lib.toHexString: Statically compute hexDigits attrset | adisbladis | 1 | -16/+14 | |
2023-12-11 | lib.pipe: Avoid creating scopes | adisbladis | 1 | -3/+1 | |
2023-12-11 | lib.strings: Dont create scopes for getName/getVersion | adisbladis | 1 | -12/+12 | |
We can create the `parse` function in a scope one level up to avoid recomputing it every time. | |||||
2023-12-10 | Merge pull request #272709 from hercules-ci/module-system-test-pr-131205 | Maximilian Bosch | 4 | -0/+36 | |
lib/modules: Test optionless module errors from #131205 | |||||
2023-12-10 | flake/version overlay: review fixes | Maximilian Bosch | 3 | -19/+22 | |
* 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> | |||||
2023-12-10 | lib/trivial: drop `rec` in favor of `lib` fixpoint | Maximilian Bosch | 1 | -2/+14 | |
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`. | |||||
2023-12-10 | Merge pull request #272183 from infinisil/nixpkgs-reference | Robert Hensing | 1 | -1/+1 | |
doc: Rename to Nixpkgs reference manual and restate purpose |