| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Describing the string argument as a string is redundant and not needed
to describe what this function does.
|
|
|
|
|
|
| |
The example refers to a snake_case function name but Nix uses camelCase
function names. This ensures the example is correct for the given
function.
|
|
|
|
|
| |
The As was missing in the examples on this library function. This will
ensure the examples refer to the function they document.
|
|\
| |
| | |
Platform config improvements
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
We dont have to match on exact strings if we get accessed to `parsed`.
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
|
|\ \
| | |
| | | |
Cross-compile configuration for reMarkable 2 tablet
|
| | | |
|
|\ \ \
| |_|/
|/| | |
lib/modules: Make sure to not import module _file's into the store
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Previously if `_file` was specified by a module:
trace: warning: The type `types.string' of option `foo' defined in `/nix/store/yxhm2il5yrb92fldgriw0wyqh2kk9qyc-bug.nix' is deprecated. See https://github.com/NixOS/nixpkgs/pull/66346 for better alternative types.
With this change:
trace: warning: The type `types.string' of option `foo' defined in `/home/infinisil/src/nixpkgs/bug.nix' is deprecated. See https://github.com/NixOS/nixpkgs/pull/66346 for better alternative types.
|
|\ \ \
| |_|/
|/| | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Initial implementation of remarkable1 cross-compile
|
| | | | |
|
|/ / /
| | |
| | |
| | |
| | | |
This improves performance by ~30-40% for smaller test cases and makes
larger cases where my laptop would OOM pass in seconds.
|
| | |
| | |
| | |
| | |
| | | |
It's ugly as hell, but I suppose it is needed to codify how to make
spliced package sets.
|
|\ \ \ |
|
| |\ \ \
| | | | |
| | | | | |
Initial implementation of cross-compilation to Knuth's MMIX
|
| | | | | |
|
| | |/ /
| |/| | |
|
|\| | | |
|
| |\ \ \
| | | | |
| | | | | |
lib/strings: guard against an easy mistake
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This would catch the bad `fwknop` flags fixed in 580cab57e4,
during evaluation already.
|
|/ / / / |
|
| |/ /
|/| |
| | |
| | |
| | |
| | |
| | | |
split comes from builtins, not lib.
error: attribute 'split' missing, at /nix/path/nixpkgs/lib/sources.nix:4:4
(use '--show-trace' to show detailed location information)
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
I think there was a silent (i.e. semantic) merge conflict between PR #101139 and
PR #100456. This commit should fix the error, which manifests as follows:
error: undefined variable 'boolToString' at /home/kkini/src/nixpkgs/lib/types.nix:552:42
|
|\ \ \
| | | |
| | | | |
lib: Use Nix's static scope checking, fix error message, optimize
|
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This puts it among the trace* family of functions derived from it.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Unlike the other three is* functions in lib.trivial, it was only
available as lib.trivial.isFloat
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Nix can perform static scope checking, but whenever code is inside
a `with` expression, the analysis breaks down, because it can't
know statically what's in the attribute set whose attributes were
brought into scope. In those cases, Nix has to assume that
everything works out.
Except it doesnt. Removing `with` from lib/ revealed an undefined
variable in an error message.
If that doesn't convince you that we're better off without `with`,
I can tell you that this PR results in a 3% evaluation performance
improvement because Nix can look up local variables by index.
This adds up with applications like the module system.
Furthermore, removing `with` makes the binding site of each
variable obvious, which helps with comprehension.
|
| | | | |
|
| | | | |
|
|\ \ \ \ |
|
| |/ / /
| | | |
| | | |
| | | |
| | | | |
Since b08b0bcbbec77046e5a7082177cedc12fbf1dc6c, the function actually
causes an assertion error, not a warning.
|
|\ \ \ \
| |/ / /
|/| | | |
treewide: De-inline uses of lib.boolToString
|
| | | |
| | | |
| | | |
| | | | |
This commit should not change eval results
|
|\ \ \ \
| | | | |
| | | | | |
Implement splitString using builtins.split
|
| |/ / / |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add a friendly function to easily return a flattened list of files
within a directory.
This is useful if you want to easily iterate or concatSep the list of
files all found within a directory.
(i.e. when constructing Java's CLASSPATH)
Style improvements
Co-authored-by: Silvan Mosberger <github@infinisil.com>
|
|\| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Quite many rebuilds from master:
> Estimating rebuild amount by counting changed Hydra jobs.
> 3926 x86_64-darwin
> 4645 x86_64-linux
|
| |\ \ \
| | | | |
| | | | | |
nixos: Data module imports
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The vision here is that configuration tools can generate .json or .toml
files, which can be plugged into an existing configuration.
Eg:
{ lib, ... }:
{
imports = [
(lib.modules.importJSON ./hardware-configuration.json)
];
}
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Complements the `lib.importJSON`. `builtins.readTOML` has been
introduced in Nix 2.1.
|
|\| | | | |
|
| | |_|/
| |/| |
| | | |
| | | | |
Previously bool values would show as <bool>
|
|\| | | |
|