summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)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 error•••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. Silvan Mosberger2020-09-211-1/+7
* lib/modules: Improve error messages using showDefsSilvan Mosberger2020-09-212-10/+10
* lib/options: Introduce showDefs•••For pretty-printing definitions, including file and values Silvan Mosberger2020-09-211-0/+18
* lib/types: Remove unreachable if branch•••The type's check function already ensured that it can't be passed non-lists Silvan Mosberger2020-09-211-10/+8
* Merge pull request #97133 from Infinisil/improved-toPretty•••Improve `generators.toPretty`Silvan Mosberger2020-09-212-27/+104
|\
| * lib/generators.toPretty: functors should print as functions•••Not attribute sets. So move the function case forward Silvan Mosberger2020-09-171-7/+7
| * lib/generators.toPretty: Print [] and {} compactlySilvan Mosberger2020-09-172-2/+9
| * lib/generators.toPretty: Switch away from δ and λ•••- 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 Silvan Mosberger2020-09-172-12/+13
| * 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 function•••As a preparation to the following commit Silvan Mosberger2020-09-171-3/+4
| * lib/generators.toPretty: Only quote attribute names if necessarySilvan Mosberger2020-09-172-2/+2
* | Merge pull request #97119 from Infinisil/types.anything•••Introduce `types.anything`Robert Hensing2020-09-219-0/+206
|\ \
| * | lib/tests: Add tests for types.anythingSilvan Mosberger2020-09-157-0/+166
| * | lib/types: Introduce types.anything•••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 Silvan Mosberger2020-09-151-0/+36
| * | lib/options: Fix mergeEqualOption for singular functions•••Previously it would error out for a single function definition Silvan Mosberger2020-09-151-0/+4
| |/
* | Merge pull request #81014 from fgaz/platforms/endianness•••platforms: add bigEndian and littleEndianGabriel Ebner2020-09-201-23/+26
|\ \
| * | platforms: add bigEndian and littleEndianFrancesco Gazzetta2020-09-201-23/+26
* | | lib.licenses: add Prosperity-3.0.0 license (#97832)Geoffrey Huntley2020-09-121-0/+6
* | | Merge pull request #97587 from arcnmx/arch-fix•••Fix arch eval errorMatthew Bauer2020-09-101-1/+1
|\ \ \
| * | | Fix arch eval error introduced in #61019•••This occurs when using a `platform.gcc.arch` that isn't one of the pre-existing hard-coded options. arcnmx2020-09-091-1/+1
* | | | jasper: remove, abandoned upstream.•••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> David Anderson2020-09-091-5/+0
* | | | Merge pull request #97387 from Ericson2314/fix-android-prebuilt•••cc-wrapper: Fix for prebuilt androidJohn Ericson2020-09-081-2/+2
|\ \ \ \ | |/ / / |/| | |
| * | | lib.systems.examples: Bump android SDK to 21•••074bc78cc8749faa31729096b65f2ef51b10abeb evidently meant to do this, but forgot. John Ericson2020-09-081-2/+2
| | |/ | |/|
* | | 21.03 is Okapi•••* Okapi is an artiodactyl mammal native to Central Africa * https://en.wikipedia.org/wiki/Okapi Jonathan Ringer2020-09-071-1/+1
* | | Merge pull request #97114 from Infinisil/type-deprecation•••Better type deprecation messagesSilvan Mosberger2020-09-072-16/+21
|\ \ \
| * | | 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 enough•••Has been deprecated since fd803fce606a007403ba6d05f09ed2e6a3371830 (2013-08-22) Silvan Mosberger2020-09-071-3/+0
| * | | lib/types: Allow types to emit a deprecation warning•••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 Silvan Mosberger2020-09-072-2/+9
| |/ /
* | | Merge pull request #97042 from Infinisil/freeform-option-docs•••Show sub options of freeform typesSilvan Mosberger2020-09-072-1/+32
|\ \ \ | |/ / |/| |
| * | lib/tests: Add test for freeform option docsSilvan Mosberger2020-09-041-0/+26
| * | lib/types: Show sub options of freeform types•••Previously if you set the freeform type to e.g. attrsOf (submodule ..), those submodule options wouldn't be shown in the manual. Silvan Mosberger2020-09-031-1/+6
* | | lib/strings: deprecate readPathsFromFile•••> 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. V2020-09-031-8/+9
* | | Merge pull request #96042 from rnhmjoj/loaOf•••treewide: completely remove types.loaOfWORLDofPEACE2020-09-022-107/+11
|\ \ \
| * | | treewide: completely remove types.loaOfrnhmjoj2020-09-022-107/+11
* | | | Merge pull request #61019 from volth/gcc.arch-amd•••platform.gcc.arch: support for AMD CPUsJohn Ericson2020-09-012-0/+79
|\ \ \ \ | |_|/ / |/| | |
| * | | 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
* | | | Merge pull request #96223 from KAction/static•••Make pkgsStatic set "static" argument to trueJohn Ericson2020-08-311-0/+1
|\ \ \ \
| * | | | Distinguish pkgsStatic from pkgsMusl via stdenv.targetPlatform•••This change allows derivations to distinguish dynamic musl build and static musl build in cases where upstream build system can't detect it by itself. Dmitry Bogatov2020-08-271-0/+1
* | | | | pythonPackages.databricks-connect: init at 7.1.0kfollesdal2020-08-311-1/+1
* | | | | licenses: add databrickskfollesdal2020-08-311-0/+6
* | | | | Merge pull request #95309 from obsidiansystems/mobile-fixes•••Support Android 29 in cross-compilation Matthew Bauer2020-08-281-2/+2
|\ \ \ \ \ | |/ / / / |/| | | |