| Commit message (Collapse) | Author | Age |
|\
| |
| | |
lib/systems/inspect: add `isSparc64`
|
| |
| |
| |
| |
| | |
This is useful to distinguish between SPARC64 and SPARC whatever,
because SPARC64 do support compressed kernels.
|
|\ \
| |/
|/| |
lib: make deprecation warnings consistent
|
| |
| |
| |
| |
| |
| |
| | |
The deprecation warnings in lib were wildly inconsistent. Different
formulations were used in different places for the same meaning. Some warnings
used builtins.trace instead of lib.warn, which prevents silencing; one even
only had a comment instead. Make everything more uniform.
|
|\ \
| | |
| | | |
lib.modules.doRename: Add condition parameter
|
| |/
| |
| |
| |
| | |
This is to support single-to-multi service migrations, so that the
`to` (e.g. `foos.""`) isn't defined unconditionally. See test cases.
|
|\ \
| | |
| | | |
treewide: fix parse errors with Nix 2.3 and related problems
|
| |/
| |
| |
| |
| |
| | |
It is useful that all (or almost all) .nix files in nixpkgs at least
parse since it allows for checking syntax in the repository
programmatically without evaluating anything.
|
|\ \ |
|
| |/
| |
| |
| |
| |
| | |
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.
|
|\ \
| |/
|/| |
lib.fileset.gitTracked: Allow clones of shallow repositories
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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>
|
|\ \
| |/
|/| |
types.nix: fix nonEmptyListOf
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| | |
Improve the documentation of `lib.extends` and how it relates to overlays
|
| |
| |
| |
| | |
Co-Authored-By: Valentin Gagarin <valentin.gagarin@tweag.io>
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- Better names:
- self -> final
- super -> prev
- rattrs -> f
- f -> overlay
- Add documentation to the function arguments
- Add some spacing
|
| | |
|
| |
| |
| |
| | |
The previous one was unnecessarily confusing.
|
|\ \
| | |
| | | |
`lib.callPackageWith`: Use abort again instead of throw and fix evaluation errors caused by it
|
| | |
| | |
| | |
| | | |
This reverts f8ea911f7c4e44b167d4b1b51f6d00ebd93e1ed1, see also https://github.com/NixOS/nixpkgs/pull/271123#discussion_r1442134594
|
|/ /
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | |
| | |
| | | |
hercules-ci/modules-types-description-nonRestrictiveClause
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)
|
|/ / |
|
|\ \
| | |
| | | |
lib: Add contribution guidelines
|
| | |
| | |
| | |
| | | |
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|
|\ \ \
| | | |
| | | | |
`lib.fileset.gitTracked`: Support out-of-tree builds
|
| | | | |
|
| | | | |
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
lib.packagesFromDirectoryRecursive: init
|
| | |/ /
| |/| |
| | | |
| | | | |
Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | | |
While trying to extend generateLuarocksConfig, I had infinite loops caused by toLua considering derivations as attrSets
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
nixos/stub-ld: init module
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
lib.getExe: Make more efficient
|
| | | | | |
|
|\ \ \ \ \
| |_|_|/ /
|/| | | | |
lib/attrsets: Document and link Nix language operators
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
|\ \ \ \ \
| |_|/ / /
|/| | | | |
`lib.fileset.gitTracked,gitTrackedWith`: Minor improvements
|
| | | | | |
|