| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
before: :p lib.systems failed with
error: getting status of '...examples': no such file or directory
|
|\
| |
| |
| |
| | |
Profpatsch/lib.generators-add-toINIWithGlobalSection
lib.generators: add toINIWithGlobalSection
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
As discussed in
https://github.com/NixOS/nixpkgs/pull/118925#issuecomment-821112723,
this is the best way of adding global sections to `toINI` without
employing heuristics (i.e. checking whether something is an attrset).
|
|\ \
| | |
| | | |
lib/modules: Document `_module.args`
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Documents the _module.args option, motivated by many usages in Flakes,
especially with the deprecation of extraArgs
(https://github.com/NixOS/nixpkgs/commit/78ada833615d241ed76463aa5a024b614150eb4d)
The documentation rendering for this option had to be handled a bit
specially, since it's not declared in nixos/modules like all the other
NixOS options.
Co-Authored-By: pennae <github@quasiparticle.net>
Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
|
|\ \ \
| | | |
| | | | |
Always sanitize derivation name
|
| | | |
| | | |
| | | |
| | | | |
`^` and `$` are implicit in `match`.
|
| | | | |
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This uses the levenshtein distance to look through all possible
arguments to find ones that are close to what was requested:
error: Function in /home/infinisil/src/nixpkgs/pkgs/tools/text/ripgrep/default.nix
called without required argument "fetchFromGithub",
did you mean "fetchFromGitHub" or "fetchFromGitLab"?
With https://github.com/NixOS/nix/pull/3468 (in current nixUnstable) the error
message becomes even better, adding line location info
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Adds some functions related to string similarity:
- lib.strings.commonPrefixLength
- lib.strings.commonSuffixLength
- lib.strings.levenshtein
- lib.strings.levenshteinAtMost
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
lib/trivial: actually expose warnIfNot and throwIf
|
| | | | | |
|
|\| | | | |
|
| |\ \ \ \ |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
<https://spdx.org/licenses/MIT-0.html>
|
| |\ \ \ \ \
| | |_|/ / /
| |/| | | | |
|
| | | |/ /
| | |/| | |
|
|\| | | | |
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
lib/modules: Finally remove deprecated types.optionSet
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
types.optionSet has been deprecated for almost 10 years now
(0e333688cea468a28516bf6935648c03ed62a7bb)! A removal
was already attempted in 2019
(27982b408e465554b8831f492362bc87ed0ec02a), but it was promptly
reinstantiated since some third-party uses were discovered
(f531ce75e4178c6867cc1d0f7fec96b2d5c3f1cb).
It's finally time to remove it for good :)
|
|\| | | | |
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
nixos/testing: restrict arguments to makeTest
|
| | |\ \ \ |
|
| | | | | | |
|
| | | |_|/
| | |/| | |
|
|\| | | | |
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
lib/trivial: add warnIfNot and throwIf
|
| | | |/
| | |/|
| | | |
| | | | |
Negated versions of warnIf and throwIfNot.
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
Stop premature warnings, including `nix.settings` migration
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Let's keep things simple and not poke holes in the
improved migration process.
|
| | | | |
| | | | |
| | | | |
| | | | | |
Adds support for sinceRelease
|
|\| | | | |
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
Introduce `lib.updateManyAttrsByPath`
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
builtins.groupBy is much more performant. It was introduced in
https://github.com/NixOS/nix/pull/5715
|
| | | | | |
|
|\| | | | |
|
| |\ \ \ \
| | | | | |
| | | | | | |
mips64el support
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
https://github.com/NixOS/nixpkgs/pull/161158#discussion_r822295406
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
MIPS has a large space of {architecture,abi,endianness}; this commit
adds all of them to lib/systems/platforms.nix so we can be done with
it.
Currently lib/systems/inspect.nix has a single "isMips" predicate,
which is a bit ambiguous now that we will have both mips32 and mips64
support, with the latter having two ABIs. Let's add four new
predicates (isMips32, isMips64, isMips64n32, and isMips64n64) and
treat the now-ambiguous isMips as deprecated in favor of the
more-specific predicates. These predicates are used mainly for
enabling/disabling target-specific workarounds, and it is extremely
rare that a platform-specific workaround is needed, and both mips32
and mips64 need exactly the same workaround.
The separate predicates (isMips64n32 and isMips64n64) for ABI
distinctions are, unfortunately, useful. Boost's user-scheduled
threading (used by nix) does does not currently supports mips64n32,
which is a very desirable ABI on routers since they rarely have
more than 2**32 bytes of DRAM.
|
|\| | | | | |
|