aboutsummaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | 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 errorSilvan Mosberger2020-09-211-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | | lib/modules: Improve error messages using showDefsSilvan Mosberger2020-09-212-10/+10
| | | |
| * | | lib/options: Introduce showDefsSilvan Mosberger2020-09-211-0/+18
| | | | | | | | | | | | | | | | For pretty-printing definitions, including file and values
| * | | lib/types: Remove unreachable if branchSilvan Mosberger2020-09-211-10/+8
| | | | | | | | | | | | | | | | | | | | The type's check function already ensured that it can't be passed non-lists
* | | | Merge staging-next into stagingFrederik Rietdijk2020-09-2211-27/+310
|\| | |
| * | | Merge pull request #97133 from Infinisil/improved-toPrettySilvan Mosberger2020-09-212-27/+104
| |\ \ \ | | | | | | | | | | Improve `generators.toPretty`
| | * | | lib/generators.toPretty: functors should print as functionsSilvan Mosberger2020-09-171-7/+7
| | | | | | | | | | | | | | | | | | | | Not attribute sets. So move the function case forward
| | * | | lib/generators.toPretty: Print [] and {} compactlySilvan Mosberger2020-09-172-2/+9
| | | | |
| | * | | lib/generators.toPretty: Switch away from δ and λSilvan Mosberger2020-09-172-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
| | * | | lib/generators.toPretty: Improved string printing, handling newlinesSilvan Mosberger2020-09-172-1/+40
| | | | |
| | * | | lib/generators.toPretty: Implement multiline printingSilvan Mosberger2020-09-172-11/+40
| | | | |
| | * | | lib/generators.toPretty: Wrap in a go functionSilvan Mosberger2020-09-171-3/+4
| | | | | | | | | | | | | | | | | | | | As a preparation to the following commit
| | * | | lib/generators.toPretty: Only quote attribute names if necessarySilvan Mosberger2020-09-172-2/+2
| | | | |
| * | | | Merge pull request #97119 from Infinisil/types.anythingRobert Hensing2020-09-219-0/+206
| |\ \ \ \ | | | | | | | | | | | | Introduce `types.anything`
| | * | | | lib/tests: Add tests for types.anythingSilvan Mosberger2020-09-157-0/+166
| | | | | |
| | * | | | lib/types: Introduce types.anythingSilvan Mosberger2020-09-151-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | | | lib/options: Fix mergeEqualOption for singular functionsSilvan Mosberger2020-09-151-0/+4
| | |/ / / | | | | | | | | | | | | | | | Previously it would error out for a single function definition
* | | | | Merge branch 'staging-next' into stagingWORLDofPEACE2020-09-201-25/+28
|\| | | |
| * | | | Merge pull request #81014 from fgaz/platforms/endiannessGabriel Ebner2020-09-201-25/+28
| |\ \ \ \ | | | | | | | | | | | | platforms: add bigEndian and littleEndian
| | * | | | platforms: add bigEndian and littleEndianFrancesco Gazzetta2020-09-201-25/+28
| | | | | |
* | | | | | Merge branch 'staging-next' into stagingVladimír Čunát2020-09-131-0/+6
|\| | | | |
| * | | | | lib.licenses: add Prosperity-3.0.0 license (#97832)Geoffrey Huntley2020-09-121-0/+6
| | |_|/ / | |/| | |
* | | | | Merge staging-next into stagingFrederik Rietdijk2020-09-127-26/+57
|\| | | |
| * | | | Merge pull request #97587 from arcnmx/arch-fixMatthew Bauer2020-09-101-1/+1
| |\ \ \ \ | | | | | | | | | | | | Fix arch eval error
| | * | | | Fix arch eval error introduced in #61019arcnmx2020-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This occurs when using a `platform.gcc.arch` that isn't one of the pre-existing hard-coded options.
| * | | | | jasper: remove, abandoned upstream.David Anderson2020-09-091-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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>
| * | | | | Merge pull request #97387 from Ericson2314/fix-android-prebuiltJohn Ericson2020-09-081-2/+2
| |\ \ \ \ \ | | |/ / / / | |/| | | | cc-wrapper: Fix for prebuilt android
| | * | | | lib.systems.examples: Bump android SDK to 21John Ericson2020-09-081-2/+2
| | | |/ / | | |/| | | | | | | | | | | | | | | | | 074bc78cc8749faa31729096b65f2ef51b10abeb evidently meant to do this, but forgot.
| * | | | 21.03 is OkapiJonathan Ringer2020-09-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * Okapi is an artiodactyl mammal native to Central Africa * https://en.wikipedia.org/wiki/Okapi
| * | | | Merge pull request #97114 from Infinisil/type-deprecationSilvan Mosberger2020-09-072-16/+21
| |\ \ \ \ | | | | | | | | | | | | Better type deprecation messages
| | * | | | lib/types: Set deprecationMessage for types.optionSetSilvan Mosberger2020-09-071-1/+2
| | | | | |
| | * | | | lib/types: Set deprecationMessage for types.loaOfSilvan Mosberger2020-09-071-8/+6
| | | | | |
| | * | | | lib/types: Set deprecationMessage for types.stringSilvan Mosberger2020-09-071-2/+4
| | | | | |
| | * | | | lib/types: Remove types.list, it's been deprecated long enoughSilvan Mosberger2020-09-071-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Has been deprecated since fd803fce606a007403ba6d05f09ed2e6a3371830 (2013-08-22)
| | * | | | lib/types: Allow types to emit a deprecation warningSilvan Mosberger2020-09-072-2/+9
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * | | | Merge pull request #97042 from Infinisil/freeform-option-docsSilvan Mosberger2020-09-072-1/+32
| |\ \ \ \ | | |/ / / | |/| | | Show sub options of freeform types
| | * | | lib/tests: Add test for freeform option docsSilvan Mosberger2020-09-041-0/+26
| | | | |
| | * | | lib/types: Show sub options of freeform typesSilvan Mosberger2020-09-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Previously if you set the freeform type to e.g. attrsOf (submodule ..), those submodule options wouldn't be shown in the manual.
* | | | | Merge branch 'staging' into ios-13Matthew Bauer2020-09-1025-185/+447
|\| | | |
| * | | | lib/strings: deprecate readPathsFromFileV2020-09-031-8/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | > 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.
| * | | | Merge pull request #96042 from rnhmjoj/loaOfWORLDofPEACE2020-09-022-107/+11
| |\ \ \ \ | | | | | | | | | | | | treewide: completely remove types.loaOf
| | * | | | treewide: completely remove types.loaOfrnhmjoj2020-09-022-107/+11
| | | | | |
| * | | | | Merge pull request #61019 from volth/gcc.arch-amdJohn Ericson2020-09-012-0/+79
| |\ \ \ \ \ | | |_|/ / / | |/| | | | platform.gcc.arch: support for AMD CPUs
| | * | | | Update architectures.nixvolth2020-09-011-1/+2
| | | | | |
| | * | | | Update architectures.nixvolth2020-08-221-12/+13
| | | | | |
| | * | | | Update architectures.nixvolth2020-08-221-7/+7
| | | | | |
| | * | | | Update architectures.nixvolth2020-08-221-6/+6
| | | | | |
| | * | | | gcc.arch: refactor, move tables under lib/volth2020-08-052-0/+77
| | | | | |