summaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
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-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
2020-09-21lib/tests: Allow grepping for newlines in error messagesSilvan Mosberger
2020-09-21lib/modules: Evaluate single defs for readOnly errorSilvan Mosberger
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.
2020-09-21lib/modules: Improve error messages using showDefsSilvan Mosberger
2020-09-21lib/options: Introduce showDefsSilvan Mosberger
For pretty-printing definitions, including file and values
2020-09-21lib/types: Remove unreachable if branchSilvan Mosberger
The type's check function already ensured that it can't be passed non-lists
2020-09-21Merge pull request #97133 from Infinisil/improved-toPrettySilvan Mosberger
Improve `generators.toPretty`
2020-09-21Merge pull request #97119 from Infinisil/types.anythingRobert Hensing
Introduce `types.anything`
2020-09-20Merge branch 'staging-next' into stagingWORLDofPEACE
2020-09-20Merge pull request #81014 from fgaz/platforms/endiannessGabriel Ebner
platforms: add bigEndian and littleEndian
2020-09-20platforms: add bigEndian and littleEndianFrancesco Gazzetta
2020-09-17lib/generators.toPretty: functors should print as functionsSilvan Mosberger
Not attribute sets. So move the function case forward
2020-09-17lib/generators.toPretty: Print [] and {} compactlySilvan Mosberger
2020-09-17lib/generators.toPretty: Switch away from δ and λSilvan Mosberger
- 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
2020-09-17lib/generators.toPretty: Improved string printing, handling newlinesSilvan Mosberger
2020-09-17lib/generators.toPretty: Implement multiline printingSilvan Mosberger
2020-09-17lib/generators.toPretty: Wrap in a go functionSilvan Mosberger
As a preparation to the following commit
2020-09-17lib/generators.toPretty: Only quote attribute names if necessarySilvan Mosberger
2020-09-15lib/tests: Add tests for types.anythingSilvan Mosberger
2020-09-15lib/types: Introduce types.anythingSilvan Mosberger
This new type has unsurprising merge behavior: Only attribute sets are merged together (recursively), and only if they don't conflict. This is in contrast to the existing types: - types.attrs is problematic because later definitions completely override attributes of earlier definitions, and it doesn't support mkIf and co. - types.unspecified is very similar to types.attrs, but it has smart merging behavior that often doesn't make sense, and it doesn't support all types
2020-09-15lib/options: Fix mergeEqualOption for singular functionsSilvan Mosberger
Previously it would error out for a single function definition
2020-09-13Merge branch 'staging-next' into stagingVladimír Čunát
2020-09-12lib.licenses: add Prosperity-3.0.0 license (#97832)Geoffrey Huntley
2020-09-12lib: allow to import JSON and TOML fileszimbatm
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) ]; }
2020-09-12lib: add importTOMLzimbatm
Complements the `lib.importJSON`. `builtins.readTOML` has been introduced in Nix 2.1.
2020-09-12Merge staging-next into stagingFrederik Rietdijk
2020-09-10Merge branch 'staging' into ios-13Matthew Bauer
2020-09-10Merge pull request #97587 from arcnmx/arch-fixMatthew Bauer
Fix arch eval error
2020-09-09Fix arch eval error introduced in #61019arcnmx
This occurs when using a `platform.gcc.arch` that isn't one of the pre-existing hard-coded options.
2020-09-09jasper: remove, abandoned upstream.David Anderson
Jasper has been marked insecure for a while, and upstream has not been responsive to CVEs for over a year. Fixes #55388. Signed-off-by: David Anderson <dave@natulte.net>
2020-09-08Merge pull request #97387 from Ericson2314/fix-android-prebuiltJohn Ericson
cc-wrapper: Fix for prebuilt android
2020-09-08lib.systems.examples: Bump android SDK to 21John Ericson
074bc78cc8749faa31729096b65f2ef51b10abeb evidently meant to do this, but forgot.
2020-09-0721.03 is OkapiJonathan Ringer
* Okapi is an artiodactyl mammal native to Central Africa * https://en.wikipedia.org/wiki/Okapi
2020-09-07Merge pull request #97114 from Infinisil/type-deprecationSilvan Mosberger
Better type deprecation messages
2020-09-07Merge pull request #97042 from Infinisil/freeform-option-docsSilvan Mosberger
Show sub options of freeform types
2020-09-07lib/types: Set deprecationMessage for types.optionSetSilvan Mosberger
2020-09-07lib/types: Set deprecationMessage for types.loaOfSilvan Mosberger
2020-09-07lib/types: Set deprecationMessage for types.stringSilvan Mosberger
2020-09-07lib/types: Remove types.list, it's been deprecated long enoughSilvan Mosberger
Has been deprecated since fd803fce606a007403ba6d05f09ed2e6a3371830 (2013-08-22)
2020-09-07lib/types: Allow types to emit a deprecation warningSilvan Mosberger
Previously the only way to deprecate a type was using theType = lib.warn "deprecated" (mkOptionType ...) This caused the warning to be emitted when the type was evaluated, but the error didn't include which option actually used that type. With this commit, types can specify a deprecationMessage, which when non-null, is printed along with the option that uses the type
2020-09-04lib/tests: Add test for freeform option docsSilvan Mosberger
2020-09-03lib/types: Show sub options of freeform typesSilvan Mosberger
Previously if you set the freeform type to e.g. attrsOf (submodule ..), those submodule options wouldn't be shown in the manual.
2020-09-03lib/strings: deprecate readPathsFromFileV
> NOTE: This function is not performant and should be avoided. It's not used at all in-tree now, so we can remove it completely after any remaining users are given notice.
2020-09-02Merge pull request #96042 from rnhmjoj/loaOfWORLDofPEACE
treewide: completely remove types.loaOf
2020-09-01Merge pull request #61019 from volth/gcc.arch-amdJohn Ericson
platform.gcc.arch: support for AMD CPUs