Age | Commit message (Collapse) | Author | Files | Lines |
|
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
|
|
`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
|
|
flake: fix `lib.trivial.version` when used from a flake
|
|
|
|
|
|
|
|
|
|
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
|
|
* 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`.
|
|
doc: Rename to Nixpkgs reference manual and restate purpose
|
|
lib.types.anyBool: init
|
|
|
|
|
|
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.
|
|
|
|
Allows finding the most specific path that exists.
This is useful for error messages relating to attribute paths.
|
|
|
|
Probably not significant because of the limits already applied.
This is mostly cleanup.
|
|
A more efficient sort in some cases, and often convenient.
This exposes `lib.lists.sortOn` immediately on `lib`, because it is
a sibling of `sort`, which is already present there.
Omitting it would lead to more confusion, and worse outcomes.
There's no confusion about the types `sort` or `sortOn` operate on.
Haskell agrees about the type for `sortOn`, and it is in its `base`.
|
|
This type is necessary to have correct merging behavior for
`allowUnfreePredicate` and `allowInsecurePredicate`
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com>
|
|
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>
|
|
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|