about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2020-12-18Merge pull request #97145 from lheckemann/initrd-improvementsLinus Heckemann1-1/+1
Initrd improvements
2020-12-18Revert "Module-builtin assertions, disabling assertions and submodule ↵Silvan Mosberger13-303/+45
assertions"
2020-12-18Merge pull request #97023 from Infinisil/module-assertionsSilvan Mosberger13-45/+303
Module-builtin assertions, disabling assertions and submodule assertions
2020-12-18Merge pull request #104118 from LibreCybernetics/add-parity-licenseDoron Behar1-0/+6
lib.licenses: add Parity-7.0.0 license
2020-12-18lib/modules: Prefix mkRemovedOptionModule & co. check namesSilvan Mosberger1-3/+3
To avoid name clashes Co-authored-by: Robert Hensing <robert@roberthensing.nl>
2020-12-17lib/modules: Introduce _module.checks.*.checkSilvan Mosberger11-29/+39
Previously the .enable option was used to encode the condition as well, which lead to some oddness: - In order to encode an assertion, one had to invert it - To disable a check, one had to mkForce it By introducing a separate .check option this is solved because: - It can be used to encode assertions - Disabling is done separately with .enable option, whose default can be overridden without a mkForce
2020-12-17lib/systems: fix kernelArch for x86_64Linus Heckemann1-1/+1
IA64 (Itanium) is something completely different and certainly not what we want! x86_64 code lives in arch/x86 just like "classic" x86.
2020-12-08Merge pull request #101248 from makefu/pkgs/pfsshell/initSandro1-0/+5
2020-12-05lib/string: drop redundant string in description of toInt.Alex Brandt1-1/+1
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 Brandt1-2/+2
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 Brandt1-2/+2
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 Ericson3-19/+23
Platform config improvements
2020-12-01Merge pull request #105432 from tadfisher/remarkable-2-crossJohn Ericson2-0/+20
Cross-compile configuration for reMarkable 2 tablet
2020-12-01licenses: Add Academic Free License version 2.0makefu1-0/+5
2020-11-30lib/modules: _module.check should always be internalSilvan Mosberger1-8/+9
Honestly this option should probably just be removed
2020-11-30lib/modules: Remove _module.checks.*.triggerPath as it's not necessarySilvan Mosberger6-164/+27
Previously this option was thought to be necessary to avoid infinite recursion, but it actually isn't, since the check evaluation isn't fed back into the module fixed-point.
2020-11-30lib/modules: Rename _module.assertions to _module.checksSilvan Mosberger14-50/+56
2020-11-30lib/tests: Add tests for module-builtin assertionsSilvan Mosberger13-0/+197
2020-11-30lib/tests: Implement generalized checkConfigCodeOutErr for module testsSilvan Mosberger1-21/+34
2020-11-30nixos/modules: Expose the internal module in the top-level documentationSilvan Mosberger2-6/+11
2020-11-30nixos/modules: Allow options to be coerced to a string for convenienceSilvan Mosberger1-0/+2
2020-11-30lib/modules: Use module-builtin assertions for mkRemovedOptionModule and co.Silvan Mosberger1-14/+24
2020-11-30nixos/assertions: Use module-builtin assertion implementationSilvan Mosberger1-6/+6
2020-11-30lib/modules: Implement module-builtin assertionsSilvan Mosberger1-1/+152
This implements assertions/warnings supported by the module system directly, instead of just being a NixOS option (see nixos/modules/misc/assertions.nix). This has the following benefits: - It allows cleanly redoing the user interface. The new implementation specifically allows disabling assertions or converting them to warnings instead. - Assertions/warnings can now be thrown easily from within submodules, which previously wasn't possible and needed workarounds.
2020-11-30lib/options: Don't show internal suboption in the manualSilvan Mosberger1-1/+1
Initially https://github.com/NixOS/nixpkgs/pull/82897 prevented non-visible options from being rendered in the manual, but visible-but-internal options were still being recursed into. This fixes this, aligning the recurse condition here with the one in make-options-doc/default.nix
2020-11-30Merge pull request #99115 from Infinisil/toString-module-filesSilvan Mosberger1-2/+2
lib/modules: Make sure to not import module _file's into the store
2020-11-29Cross-compiling configuration for reMarkable 2 tabletTad Fisher2-0/+20
2020-11-29lib/systems/exmaple: `riscv-multiplatform` no longer needs parameterJohn Ericson2-4/+4
2020-11-29lib, binutils: Move Risc-V bfdEmulation to be by the othersJohn Ericson1-1/+0
2020-11-29lib.systems.platforms: Make selection more flexibleJohn Ericson2-14/+19
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/xlifeSandro1-0/+5
2020-11-24Merge pull request #102503 from siraben/remarkable-initJohn Ericson2-0/+19
Initial implementation of remarkable1 cross-compile
2020-11-24lib.lists.unique: Switch from recursive function to using a foldadisbladis1-7/+1
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 Siraphob2-0/+19
2020-11-19lib: Create `makeScopeWithSplicing`John Ericson2-1/+28
It's ugly as hell, but I suppose it is needed to codify how to make spliced package sets.
2020-11-17lib.licenses: add Parity-7.0.0 licenseFabián Heredia Montiel1-0/+6
2020-11-16Merge master into staging-nextFrederik Rietdijk8-19/+64
2020-11-15licenses: add HPND-sell-variantJonathan Strickland1-0/+5
2020-11-14Merge pull request #102766 from siraben/mmixJohn Ericson5-16/+32
Initial implementation of cross-compilation to Knuth's MMIX
2020-11-13lib: Add composeManyExtensionsJoe Hermaszewski3-3/+32
2020-11-11Merge staging-next into stagingFrederik Rietdijk1-2/+6
2020-11-11Merge pull request #44928 from vcunat/p/configure-assertEelco Dolstra1-2/+6
lib/strings: guard against an easy mistake
2020-11-09Initial support for OpenRISC 1000 (or1k)Samuel Dionne-Riel4-0/+11
2020-11-09Initial implementation of mmix cross-compileBen Siraphob5-16/+32
2020-10-30lib/sources.nix: fix incorrect inheritV1-1/+1
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 Kini1-0/+3
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 Hensing9-86/+265
lib: Use Nix's static scope checking, fix error message, optimize
2020-10-25Merge pull request #101409 from rycee/dbus-warningGabriel Ebner1-1/+1
2020-10-25Merge pull request #100456 from maralorn/boolToStringAndreas Rammhold1-1/+1
treewide: De-inline uses of lib.boolToString
2020-10-24docs: update documentation of `mkRemovedOptionModule`Robert Helgesson1-1/+1
Since b08b0bcbbec77046e5a7082177cedc12fbf1dc6c, the function actually causes an assertion error, not a warning.