summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2020-12-08Merge pull request #101248 from makefu/pkgs/pfsshell/initSandro
2020-12-05lib/string: drop redundant string in description of toInt.Alex Brandt
Describing the string argument as a string is redundant and not needed to describe what this function does.
2020-12-04lib/strings: fix typo in exampleAlex Brandt
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.
2020-12-03lib/strings: fix examples for enableFeatureAsAlex Brandt
The As was missing in the examples on this library function. This will ensure the examples refer to the function they document.
2020-12-02Merge pull request #105294 from Ericson2314/platform-config-improvementsJohn Ericson
Platform config improvements
2020-12-01Merge pull request #105432 from tadfisher/remarkable-2-crossJohn Ericson
Cross-compile configuration for reMarkable 2 tablet
2020-12-01licenses: Add Academic Free License version 2.0makefu
2020-11-30Merge pull request #99115 from Infinisil/toString-module-filesSilvan Mosberger
lib/modules: Make sure to not import module _file's into the store
2020-11-29Cross-compiling configuration for reMarkable 2 tabletTad Fisher
2020-11-29lib/systems/exmaple: `riscv-multiplatform` no longer needs parameterJohn Ericson
2020-11-29lib, binutils: Move Risc-V bfdEmulation to be by the othersJohn Ericson
2020-11-29lib.systems.platforms: Make selection more flexibleJohn Ericson
We dont have to match on exact strings if we get accessed to `parsed`. Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
2020-11-26Merge pull request #103884 from djanatyn/pkg/xlifeSandro
2020-11-24Merge pull request #102503 from siraben/remarkable-initJohn Ericson
Initial implementation of remarkable1 cross-compile
2020-11-24lib.lists.unique: Switch from recursive function to using a foldadisbladis
This improves performance by ~30-40% for smaller test cases and makes larger cases where my laptop would OOM pass in seconds.
2020-11-23Initial implementation of remarkable1 cross-compileBen Siraphob
2020-11-19lib: Create `makeScopeWithSplicing`John Ericson
It's ugly as hell, but I suppose it is needed to codify how to make spliced package sets.
2020-11-16Merge master into staging-nextFrederik Rietdijk
2020-11-15licenses: add HPND-sell-variantJonathan Strickland
2020-11-14Merge pull request #102766 from siraben/mmixJohn Ericson
Initial implementation of cross-compilation to Knuth's MMIX
2020-11-13lib: Add composeManyExtensionsJoe Hermaszewski
2020-11-11Merge staging-next into stagingFrederik Rietdijk
2020-11-11Merge pull request #44928 from vcunat/p/configure-assertEelco Dolstra
lib/strings: guard against an easy mistake
2020-11-09Initial support for OpenRISC 1000 (or1k)Samuel Dionne-Riel
2020-11-09Initial implementation of mmix cross-compileBen Siraphob
2020-10-30lib/sources.nix: fix incorrect inheritV
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)
2020-10-26lib/types.nix: fix missing inheritKeshav Kini
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
2020-10-26Merge pull request #101139 from roberth/lib-use-static-scope-checkingRobert Hensing
lib: Use Nix's static scope checking, fix error message, optimize
2020-10-25Merge pull request #101409 from rycee/dbus-warningGabriel Ebner
2020-10-25Merge pull request #100456 from maralorn/boolToStringAndreas Rammhold
treewide: De-inline uses of lib.boolToString
2020-10-24docs: update documentation of `mkRemovedOptionModule`Robert Helgesson
Since b08b0bcbbec77046e5a7082177cedc12fbf1dc6c, the function actually causes an assertion error, not a warning.
2020-10-22lib/sources.nix: Prefer lib for readFile inheritRobert Hensing
2020-10-22lib: Add lib.trace for consistencyRobert Hensing
This puts it among the trace* family of functions derived from it.
2020-10-22lib/modules: Simplify inheritsRobert Hensing
2020-10-22lib: Add lib.isFloat for consistencyRobert Hensing
Unlike the other three is* functions in lib.trivial, it was only available as lib.trivial.isFloat
2020-10-22lib/options.nix: Use merge-friendly inherit syntaxRobert Hensing
2020-10-22lib: Use Nix's static scope checking, fix error message, optimizeRobert Hensing
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.
2020-10-22lib/types.nix: Use // instead of mergeAttrsRobert Hensing
2020-10-22lib/options.nix: Use head instead of elemAt _ 0Robert Hensing
2020-10-20Merge pull request #100953 from AtnNn/splitStringsSilvan Mosberger
Implement splitString using builtins.split
2020-10-19lib: Add readTree function to filesystemFarid Zakaria
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>
2020-10-18lib.splitString: use builtin.splitEtienne Laurin
2020-10-14treewide: De-inline uses of lib.boolToStringMalte Brandy
This commit should not change eval results
2020-10-10Merge branch 'master' into staging-nextVladimír Čunát
Quite many rebuilds from master: > Estimating rebuild amount by counting changed Hydra jobs. > 3926 x86_64-darwin > 4645 x86_64-linux
2020-10-09Merge pull request #96641 from zimbatm/data-module-importszimbatm
nixos: Data module imports
2020-10-06Merge staging-next into stagingFrederik Rietdijk
2020-09-29lib/modules: Make sure to not import module _file's into the storeSilvan Mosberger
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.
2020-09-24Merge branch 'staging-next' into stagingJan Tojnar
2020-09-22Merge staging-next into stagingFrederik Rietdijk
2020-09-21lib/tests: Update for error message changesSilvan Mosberger