Age | Commit message (Collapse) | Author | Files | Lines |
|
* lib.modules.importApply: init
Brings variables from rich scopes to modules defined in separate files.
A helper for functions in files that return a module.
* lib.modules.importApply: Edit doc
Generally improve the quality. Notes:
- Not rendered to the manual yet, so probably the syntax could be
improved, but I have no way to test this now.
- The docs use `arg` vs `staticArg` in the code. This is intentional,
because the doc is pretty clear about the role of `arg` whereas
the code exists in a context where ambiguities are more harmful.
* Format
|
|
|
|
>The CPU in the Raspberry Pi 1 and Zero implements the ARMv6 ISA (with VFP2)
https://wiki.debian.org/RaspberryPi#:~:text=The%20CPU%20in%20the%20Raspberry%20Pi,VFP2%29
See also
- https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications
- https://github.com/NixOS/nixpkgs/issues/319036#issuecomment-2232108373
|
|
|
|
Prevent some rebuilds for future Nix reformats
|
|
lib.meta.licensesSpdx: mapping from SPDX ID to compatible licenses
|
|
And fix locations to not break the test.
This is a rare case where another change is required after formatting.
We do this in a separate commit so that we don't need to do it in the
treewide reformatting PR.
|
|
- Expose `lib.licensesSpdx`
- Create bindings for the needed internal functions
- Mention that some SPDX licenses might be missing (in the future I hope
we can autogenerate the Nixpkgs license list from some SPDX endpoint
|
|
lib/licenses: some corrections
|
|
lib/types: update reference to docs
|
|
|
|
treewide: Rename android `sdkVer` and `ndkVer`
|
|
lib/customisation.nix: fix markup
|
|
|
|
|
|
The XML docs have been migrated to markdown since bfd21cd2c1492b799facdab2e77308c34edbe9e7
|
|
|
|
|
|
- Clear separation between failures
- Move error regex close to error message, which is at the bottom
of a fairly long trace
- Move most relevant and consistent info to bottom of terminal:
the location of the failure.
Some editors including vscode heuristically resolve file paths
on Ctrl+click.
- Less wordy - easy to glance
- Capitalized prefixes to distinguish from Nix's own logging
|
|
|
|
It still prints its own diagnostics to stdout, but it's always done that.
|
|
|
|
Spdx has a diffrent id for both and so do we!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib.strings: add `trim` and `trimWith`
|
|
Done with `fd \\\.md$ . --type f -x typos --write-changes`
|
|
`strings.trim` returns a copy of the string with all leading and trailing
whitespace removed.
`strings.trimWith` does the same thing, but calling code can decide
whether to trim the start and/or end of the string.
|
|
Those attrs have been renamed and throwing is the best way to show it,
if we only warned then the user would only get an error like this `error: Unsupported sdk: 33`
from `pkgs/top-level/darwin-packages.nix`.
If someone wants to support multiple NixOS versions then they can simply
set both attrs. (`!args ? androidSdkVersion` is for that)
|
|
|
|
`sdkVer` conflicts with the old `sdkVer`(now `darwinSdkVersion` but that still uses `sdkVer` if set) used by darwin
This shouldn't be an issue but due to `pkgs/development/interpreters/python/cpython/default.nix`
running `lib.filterAttrs (n: v: ! lib.isDerivation v && n != "passthruFun")` on it's inputs (2 of them are darwin only)
the `throw "Unsupported sdk...` in `pkgs/top-level/darwin-packages.nix` will be triggered.
After this change `pkgsCross.armv7a-android-prebuilt.python3.pythonOnBuildForHost` won't fail with
`error: Unsupported sdk: 33`
Issue was bisected to 3cb23cec239d4f73bb1b51f26ac7599384fdadd6
|
|
|
|
|
|
FreeBSD stdenv: re-init
|
|
lib.licenses: refactor internal mkLicense to avoid future typo bugs
|
|
lib.warn: Use or behave like builtins.warn
|
|
- Bring up to date
- Give meaning to the metavariables
- Use italics for metavariables (just like the Nix manual)
- Don't abbreviate
- No hard feelings, Val.
|
|
|
|
|
|
|
|
The old stdenv didn't work, and was also impure. The new one works, and
is pure. Presently, the bootstrap tools are cross compiled into one small
nar and one large tar, which is then unpacked, patched, and split into
smaller derivations. Efforts were made to make the boot process as short
as possible - there are only two clangs built, and as many packages are
propagated between stages as possible while leaving the bootstrap tools
out of the final stdenv's closure.
|
|
These functions have identical implementation except for argument names.
|
|
mqtt-explorer: init at 0.4.0-beta.6
|
|
|