| Commit message (Collapse) | Author | Age |
|\
| |
| |
| |
| | |
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
|
| | | | |
|
| | |/
| |/|
| | |
| | |
| | | |
Introduce an internal function for them to share more behavior.
This makes future changes easier.
|
|\ \ \
| | | |
| | | | |
lib.isConvertibleToString: Statically compute types list
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
lib.toHexString: Statically compute hexDigits attrset
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
lib.cmakeOptionType: Statically compute types list
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
lib.pipe: Avoid creating a scope
|
| |/ / / |
|
|\ \ \ \
| | |_|/
| |/| | |
lib.attrsets.longestValidPathPrefix: init
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Allows finding the most specific path that exists.
This is useful for error messages relating to attribute paths.
|
|\ \ \ \
| |_|/ /
|/| | | |
flake: fix `lib.trivial.version` when used from a flake
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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`.
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
We can create the `parse` function in a scope one level up to avoid recomputing it every time.
|
|\ \ \
| | | |
| | | | |
lib/modules: Test optionless module errors from #131205
|
| | | | |
|
| | |/
| |/| |
|
|\ \ \
| | | |
| | | | |
doc: Rename to Nixpkgs reference manual and restate 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>
|
|\ \ \ \
| |_|_|/
|/| | | |
lib.types.anyBool: init
|
| | |/
| |/|
| | |
| | |
| | |
| | |
| | | |
This type is necessary to have correct merging behavior for
`allowUnfreePredicate` and `allowInsecurePredicate`
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
Probably not significant because of the limits already applied.
This is mostly cleanup.
|