summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2021-01-01Merge pull request #107417 from jtojnar/deprecate-unclear-gpl-licensesJan Tojnar
licenses: Mark unclear GPL licenses explicitly deprecated
2020-12-31Merge pull request #107999 from andir/platforms-arm-trusted-platformJohn Ericson
lib/systems/platforms: treat missing cpu version as generic pcBase
2020-12-31lib/systems: add emulator for mmixBen Siraphob
2020-12-31lib/systems/platforms: treat missing cpu version as generic pcBaseAndreas Rammhold
Since 40e7be1 all ARM platforms that didn't have a parsed cpu version (e.g. arm-none-eabi) would be handled as armv7l-hf-multiplatform which did break building arm-trusted-platform packages for some targets (e.g. rk3399). Using pcBase as fallback, instead of armv7l-hf-multiplatform, corresponds with the behaviour we had before 40e7be1.
2020-12-23lib.systems: update processor architecture infoFabián Heredia Montiel
2020-12-22licenses: Mark unclear GPL licenses explicitly deprecatedJan Tojnar
We recently switched to more explicit GPL license names in line with the SPDX change and GNU Foundation recommendations: https://www.gnu.org/licenses/identify-licenses-clearly.html This followed up older change to use the recommended SPDX ID https://github.com/NixOS/nixpkgs/commit/18a5e8c36b2681f5fc4aecd79f4cc723365d2d94 but using the `-only` variant for these deprecated licenses too makes it harder to check for them automatically. Let’s switch to the appropriate SPDX ID again.
2020-12-18Merge pull request #97145 from lheckemann/initrd-improvementsLinus Heckemann
Initrd improvements
2020-12-18Revert "Module-builtin assertions, disabling assertions and submodule ↵Silvan Mosberger
assertions"
2020-12-18Merge pull request #97023 from Infinisil/module-assertionsSilvan Mosberger
Module-builtin assertions, disabling assertions and submodule assertions
2020-12-18Merge pull request #104118 from LibreCybernetics/add-parity-licenseDoron Behar
lib.licenses: add Parity-7.0.0 license
2020-12-18lib/modules: Prefix mkRemovedOptionModule & co. check namesSilvan Mosberger
To avoid name clashes Co-authored-by: Robert Hensing <robert@roberthensing.nl>
2020-12-17lib/modules: Introduce _module.checks.*.checkSilvan Mosberger
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 Heckemann
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/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-30lib/modules: _module.check should always be internalSilvan Mosberger
Honestly this option should probably just be removed
2020-11-30lib/modules: Remove _module.checks.*.triggerPath as it's not necessarySilvan Mosberger
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 Mosberger
2020-11-30lib/tests: Add tests for module-builtin assertionsSilvan Mosberger
2020-11-30lib/tests: Implement generalized checkConfigCodeOutErr for module testsSilvan Mosberger
2020-11-30nixos/modules: Expose the internal module in the top-level documentationSilvan Mosberger
2020-11-30nixos/modules: Allow options to be coerced to a string for convenienceSilvan Mosberger
2020-11-30lib/modules: Use module-builtin assertions for mkRemovedOptionModule and co.Silvan Mosberger
2020-11-30nixos/assertions: Use module-builtin assertion implementationSilvan Mosberger
2020-11-30lib/modules: Implement module-builtin assertionsSilvan Mosberger
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 Mosberger
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 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-17lib.licenses: add Parity-7.0.0 licenseFabián Heredia Montiel
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