summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #103884 from djanatyn/pkg/xlifeSandro2020-11-261-0/+5
|\
| * licenses: add HPND-sell-variantJonathan Strickland2020-11-151-0/+5
* | Merge pull request #102503 from siraben/remarkable-init•••Initial implementation of remarkable1 cross-compileJohn Ericson2020-11-242-0/+19
|\ \
| * | Initial implementation of remarkable1 cross-compileBen Siraphob2020-11-232-0/+19
* | | lib.lists.unique: Switch from recursive function to using a fold•••This improves performance by ~30-40% for smaller test cases and makes larger cases where my laptop would OOM pass in seconds. adisbladis2020-11-241-7/+1
|/ /
* | lib: Create `makeScopeWithSplicing`•••It's ugly as hell, but I suppose it is needed to codify how to make spliced package sets. John Ericson2020-11-192-1/+28
* | Merge master into staging-nextFrederik Rietdijk2020-11-168-19/+64
|\ \
| * \ Merge pull request #102766 from siraben/mmix•••Initial implementation of cross-compilation to Knuth's MMIXJohn Ericson2020-11-145-16/+32
| |\ \
| | * | Initial implementation of mmix cross-compileBen Siraphob2020-11-095-16/+32
| * | | lib: Add composeManyExtensionsJoe Hermaszewski2020-11-133-3/+32
| | |/ | |/|
* | | Merge staging-next into stagingFrederik Rietdijk2020-11-111-2/+6
|\| |
| * | Merge pull request #44928 from vcunat/p/configure-assert•••lib/strings: guard against an easy mistakeEelco Dolstra2020-11-111-2/+6
| |\ \
| | * | lib/strings: guard against an easy mistake•••This would catch the bad `fwknop` flags fixed in 580cab57e4, during evaluation already. Vladimír Čunát2018-08-121-2/+6
* | | | Initial support for OpenRISC 1000 (or1k)Samuel Dionne-Riel2020-11-094-0/+11
|/ / /
* | / lib/sources.nix: fix incorrect inherit•••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) V2020-10-301-1/+1
| |/ |/|
* | lib/types.nix: fix missing inherit•••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 Keshav Kini2020-10-261-0/+3
* | Merge pull request #101139 from roberth/lib-use-static-scope-checking•••lib: Use Nix's static scope checking, fix error message, optimizeRobert Hensing2020-10-269-86/+265
|\ \
| * | lib/sources.nix: Prefer lib for readFile inheritRobert Hensing2020-10-221-1/+1
| * | lib: Add lib.trace for consistency•••This puts it among the trace* family of functions derived from it. Robert Hensing2020-10-221-1/+1
| * | lib/modules: Simplify inheritsRobert Hensing2020-10-221-34/+32
| * | lib: Add lib.isFloat for consistency•••Unlike the other three is* functions in lib.trivial, it was only available as lib.trivial.isFloat Robert Hensing2020-10-221-1/+1
| * | lib/options.nix: Use merge-friendly inherit syntaxRobert Hensing2020-10-221-5/+30
| * | lib: Use Nix's static scope checking, fix error message, optimize•••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. Robert Hensing2020-10-229-82/+238
| * | lib/types.nix: Use // instead of mergeAttrsRobert Hensing2020-10-221-1/+1
| * | lib/options.nix: Use head instead of elemAt _ 0Robert Hensing2020-10-221-1/+1
* | | Merge pull request #101409 from rycee/dbus-warningGabriel Ebner2020-10-251-1/+1
|\ \ \
| * | | docs: update documentation of `mkRemovedOptionModule`•••Since b08b0bcbbec77046e5a7082177cedc12fbf1dc6c, the function actually causes an assertion error, not a warning. Robert Helgesson2020-10-241-1/+1
| |/ /
* | | Merge pull request #100456 from maralorn/boolToString•••treewide: De-inline uses of lib.boolToStringAndreas Rammhold2020-10-251-1/+1
|\ \ \ | |/ / |/| |
| * | treewide: De-inline uses of lib.boolToString•••This commit should not change eval results Malte Brandy2020-10-141-1/+1
* | | Merge pull request #100953 from AtnNn/splitStrings•••Implement splitString using builtins.splitSilvan Mosberger2020-10-202-21/+28
|\ \ \
| * | | lib.splitString: use builtin.splitEtienne Laurin2020-10-182-21/+28
| |/ /
* | | lib: Add readTree function to filesystem•••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> Farid Zakaria2020-10-191-0/+12
* | | Merge branch 'master' into staging-next•••Quite many rebuilds from master: > Estimating rebuild amount by counting changed Hydra jobs. > 3926 x86_64-darwin > 4645 x86_64-linux Vladimír Čunát2020-10-103-1/+24
|\| |
| * | Merge pull request #96641 from zimbatm/data-module-imports•••nixos: Data module importszimbatm2020-10-093-1/+24
| |\ \
| | * | lib: allow to import JSON and TOML files•••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) ]; } zimbatm2020-09-121-0/+17
| | * | lib: add importTOML•••Complements the `lib.importJSON`. `builtins.readTOML` has been introduced in Nix 2.1. zimbatm2020-09-122-1/+7
* | | | Merge staging-next into stagingFrederik Rietdijk2020-10-061-0/+1
|\| | |
| * | | lib/types: Fix type description of bool enum values•••Previously bool values would show as <bool> Silvan Mosberger2020-10-031-0/+1
* | | | Merge branch 'staging-next' into stagingJan Tojnar2020-09-244-33/+55
|\| | |
| * | | lib/tests: Update for error message changesSilvan Mosberger2020-09-211-12/+12
| * | | lib/tests: Allow grepping for newlines in error messagesSilvan Mosberger2020-09-211-1/+1
| * | | lib/modules: Evaluate single defs for readOnly error•••If multiple definitions are passed, this evaluates them all as if they were the only one, for a better error message. In particular this won't show module-internal properties like `_type = "override"` and co. Silvan Mosberger2020-09-211-1/+7
| * | | lib/modules: Improve error messages using showDefsSilvan Mosberger2020-09-212-10/+10
| * | | lib/options: Introduce showDefs•••For pretty-printing definitions, including file and values Silvan Mosberger2020-09-211-0/+18
| * | | lib/types: Remove unreachable if branch•••The type's check function already ensured that it can't be passed non-lists Silvan Mosberger2020-09-211-10/+8
* | | | Merge staging-next into stagingFrederik Rietdijk2020-09-2211-27/+310
|\| | |
| * | | Merge pull request #97133 from Infinisil/improved-toPretty•••Improve `generators.toPretty`Silvan Mosberger2020-09-212-27/+104
| |\ \ \
| | * | | lib/generators.toPretty: functors should print as functions•••Not attribute sets. So move the function case forward Silvan Mosberger2020-09-171-7/+7
| | * | | lib/generators.toPretty: Print [] and {} compactlySilvan Mosberger2020-09-172-2/+9
| | * | | lib/generators.toPretty: Switch away from δ and λ•••- These symbols can be confusing for those not familiar with them - There's no harm in making these more obvious - Terminals may not print them correctly either Also changes the function argument printing slightly to be more obvious Silvan Mosberger2020-09-172-12/+13