| Commit message (Collapse) | Author | Age |
|\
| |
| | |
lib/systems: remove more features from qemu-user
|
| |
| |
| |
| |
| |
| | |
alsaSupport/jackSupport: unnecessary multimedia systems
tpmSupport/capstoneSupport: unlikely to come up as an exe emulator
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* doc: migrate lib.trivial to use doc-comments
* Apply suggestions from code review
---------
Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
|
|\ \
| | |
| | | |
doc: migrate lib.attrsets to use doc-comments
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
lib: use explicit name imports in `lib/generators.nix`
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
submodules of `lib`
There's not a lot of rhyme to which names are exported from which module,
as I see it, but everything is found somewhere.
|
| | | |
| | | |
| | | |
| | | | |
This enables further refactoring without accidentally changing the public interface.
|
| | | |
| | | |
| | | |
| | | | |
Everything else was already imported.
|
| | | |
| | | |
| | | |
| | | | |
Everything used was already imported.
|
| | | |
| | | |
| | | |
| | | | |
A couple of these were imports from `builtins`.
|
| | | |
| | | |
| | | |
| | | | |
I followed the `inherit` chains in `lib/default.nix` to arrive at these imports.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
There's a couple of aliases in play:
1. `lib.isList` is an alias for `builtins.isList`.
2. `lib.strings.concatStringsSep` is an alias for `builtins.concatStringsSep`
|
|\ \ \ \
| | | | |
| | | | | |
Avoid top-level `with` in `lib/tests/misc.nix`
|
| | |_|/
| |/| | |
|
| | | | |
|
| |_|/
|/| | |
|
|\ \ \
| | | |
| | | | |
lib: use explicit name imports in `lib/deprecated.nix`
|
| | | | |
|
|\ \ \ \
| |_|_|/
|/| | | |
lib: avoid top-level `with ...;` in lib/kernel.nix
|
| |/ / |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* doc: lib.lists migrate to doc-comments
* Fix extra indentation of docs lines, remove redundant comments, add inputs docs
* fix: indentation & argument references
---------
Co-authored-by: DS <commits@sidhion.com>
|
| |
| |
| |
| | |
lib/tests/modules/extendModules-168767-imports.nix
|
| | |
|
|/
|
|
| |
lib/tests/modules/alias-with-priority-can-override.nix
|
|
|
| |
* doc: actually document `lib.customisation.makeScope`
|
| |
|
|\ |
|
| |\
| | |
| | | |
lib.toInt/toIntBase10: Make more efficient by hoisting up internal strings into higher scope
|
| | |
| | |
| | |
| | | |
into higher scope
|
| |\ \
| | | |
| | | | |
lib.getAttrFromPath: Don't use errorMessage variable
|
| | |/
| | |
| | |
| | | |
We can just pass the error message on without creating an environment.
|
| |\ \
| | | |
| | | | |
lib.mapAttrsRecursiveCond: Eliminate intermediate one intermediate variable environment
|
| | |/
| | |
| | |
| | | |
environment
|
| |\ \
| | | |
| | | | |
lib.zipAttrs: Remove needless function wrapping
|
| | |/
| | |
| | |
| | | |
Returning the partially applied `zipAttrsWith fn` is the same as `sets: zipAttrsWith fn sets`.
|
| |\ \
| | | |
| | | | |
lib.chooseDevOutputs: Remove needless function wrapping
|
| | |/
| | |
| | |
| | | |
Returning the partially applied `map getDev` is the same as `drvs: map getDev drvs`.
|
| |\ \
| | | |
| | | | |
lib.lazyDerivation: Support multi-output derivations
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* doc: add details on `mapAttrsRecursive[Cond]`
from first reading it wasn't clear that `f` also takes the current
attribute path. also the value f receives is tricky due to how the
condition is evaluated.
Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
|
| |\ \ \
| | | | |
| | | | | |
lib/customization: propagate function arguments in callPackagesWith
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
makeOverridable is very careful to ensure the arguments to the
overridden function are the same as the input function. As a result,
the arguments of hello.override are exactly the same as the original
arguments of the hello function that produced the derivation.
However, callPackagesWith calls makeOverridable with a lambda that
does not propagate the arguments. The override function for a package
instantiated with callPackagesWith will not have the original
arguments.
For example:
nix-repl> lib.functionArgs hello.override
{ callPackage = false; fetchurl = false; hello = false; lib = false; nixos = false; stdenv = false; testers = false; }
nix-repl> lib.functionArgs openssl.override
{ }
By copying the arguments onto the inner lambda before passing it to
makeOverridable, we can make callPackage and callPackages behave the
same.
nix-repl> lib.functionArgs openssl.override
{ buildPackages = false; coreutils = false; cryptodev = false; enableSSL2 = true; enableSSL3 = true; fetchurl = false; lib = false; perl = false; removeReferencesTo = false; static = true; stdenv = false; withCryptodev = true; withPerl = true; }
|
| |\ \ \ \
| | |_|_|/
| |/| | | |
`lib/` flake: fix `lib.version`
|