summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #82882 from obsidiansystems/armv6-embedded•••Misc fixes for armv6 bare metal crossJohn Ericson2020-03-192-2/+8
|\
| * lib: Fix systems test for new `armv6l-none`John Ericson2020-03-181-1/+1
| * lib: Add armv6l-none to doubles listJohn Ericson2020-03-121-1/+7
| * lib/systems: Assume newlib when no kernel and no libc is provided•••newlib is the default for most tools when no kernel is provided. Other exist, but this seems like a safe default. (cherry picked from commit 8009c2071179ee3490f244b91a49202728efe403) Matthew Bauer2020-03-121-2/+1
* | Merge pull request #82897 from Infinisil/fix-recursive-visible-docs•••lib/options: Only recurse into visible sub optionsRobert Hensing2020-03-191-1/+1
|\ \
| * | lib/options: Only recurse into visible sub optionsSilvan Mosberger2020-03-191-1/+1
* | | lib/tests: Check for nested option-dependent definitionsSilvan Mosberger2020-03-194-0/+42
* | | Revert "lib/modules: Throw better error when definitions assign to an option ...•••This reverts commit 15c873b486347e7861c64fb0b5a7852be9fc82e4. This was causing infinite recursion when depending on nested options Silvan Mosberger2020-03-193-9/+1
* | | Merge pull request #82751 from Infinisil/minor-module-improvements•••Minor module improvementsRobert Hensing2020-03-183-6/+22
|\ \ \
| * | | lib/modules: Fix type checks not being done before merging•••Co-Authored-By: Robert Hensing <robert@roberthensing.nl> Silvan Mosberger2020-03-182-4/+7
| * | | lib/modules: Throw better error when definitions assign to an option setSilvan Mosberger2020-03-183-1/+10
| * | | lib/modules: Remove internal _module attribute from config•••The _module option is added as an internal option set, and it messes up the results of module evaluations, requiring people to manually filter _modules out. If people depend on this, they can still use config._module from inside the modules, exposing _module as an explicitly declared user option. Or alternatively with the _module attribute now returned by evalModules. Silvan Mosberger2020-03-171-1/+5
| |/ /
* / / lib/modules: Test the ability for config to depend on options for compatibilityRobert Hensing2020-03-172-0/+21
|/ /
* | Merge pull request #70157 from teto/lib_kernel•••Add lib.kernelSilvan Mosberger2020-03-122-6/+14
|\ \
| * | lib.kernel: scoped whenXXX helpers•••whenAtLeast/whenBetween are made available in lib/kernel.nix but are now scoped under whenXXX. Matthieu Coudron2019-10-011-0/+10
| * | lib.kernel: make public•••Remove the "version" parameter in order to make it more widely available. Starts making some kernel configuration helpers available. The intent is to be able to better build and check the linux kernel configuration. Matthieu Coudron2019-10-012-6/+4
* | | Merge #81713: lib.callPackages(With): guard against a repeated mistakeVladimír Čunát2020-03-121-1/+6
|\ \ \
| * | | lib.callPackages(With): guard against a repeated mistake•••For example see the parent commit. Vladimír Čunát2020-03-121-1/+6
* | | | Merge pull request #72125 from jtojnar/maintainer-groups•••lib: Add lib.maintainer-groupsJan Tojnar2020-03-101-0/+1
|\ \ \ \
| * | | | lib: Add lib.teams•••Also add a freedesktop maintainer group as an example. Jan Tojnar2019-11-231-0/+1
* | | | | lib/generators: Add toINI option for duplicate keysSilvan Mosberger2020-03-102-6/+24
* | | | | Merge pull request #80919 from hercules-ci/modules-add-file-context•••lib/modules.nix: Add file context to unmerged values in mergeDefinitionsRobert Hensing2020-03-051-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | |
| * | | | lib/modules.nix: Add file context to unmerged values in mergeDefinitions•••This helps with troubleshooting exceptions in config values, which were hard to track down for options with many definitions. The trace will look like: error: while evaluating the attribute 'config.foo' at undefined position: [...] while evaluating the option `foo': [...] while evaluating definitions from `/home/user/mymod.nix': while evaluating 'dischargeProperties' at /home/user/nixpkgs/lib/modules.nix:464:25, called from /home/user/nixpkgs/lib/modules.nix:392:137: while evaluating the attribute 'value' at /home/user/nixpkgs/lib/modules.nix:277:44: Value error! where the `/home/user/mymod.nix` module is { lib, ... }: { options.foo = lib.mkOption { type = lib.types.lines; }; config.foo = builtins.throw "Value error!"; } Robert Hensing2020-02-241-1/+1
* | | | | Merge pull request #68491 from roberth/fix-dontRecurseIntoAttrs•••Fix dontRecurseIntoAttrs + add to lib + docRobert Hensing2020-03-012-1/+16
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Document attrsets.recurseIntoAttrsRobert Hensing2019-09-111-0/+3
| * | | | top-level: Fix dontRecurseIntoAttrs and include in lib•••dontRecurseIntoAttrs was a noop (x: x), causing the expression dontRecurseIntoAttrs (recurseIntoAttrs a) to have the wrong effect. Robert Hensing2019-09-112-1/+6
| * | | | lib: Add recurseIntoAttrs•••This makes the function available without having to evaluate the Nixpkgs fix-point, making it available in a more natural way for code that deals with multiple Nixpkgs invocations. Its definition is coupled to Nix rather than Nixpkgs, so it will feel right at home in lib. Robert Hensing2019-09-112-1/+8
* | | | | Merge pull request #80814 from matthewbauer/default-newlib-for-none•••lib/systems: Assume newlib when no kernel and no libc is providedJohn Ericson2020-02-221-2/+1
|\ \ \ \ \
| * | | | | lib/systems: Assume newlib when no kernel and no libc is provided•••newlib is the default for most tools when no kernel is provided. Other exist, but this seems like a safe default. Matthew Bauer2020-02-221-2/+1
* | | | | | 20.09 is Nightingaleworldofpeace2020-02-101-1/+1
| |_|_|_|/ |/| | | |
* | | | | Merge pull request #68897 from edolstra/master•••Flake supportEelco Dolstra2020-02-102-2/+2
|\ \ \ \ \
| * | | | | lib/tests/misc.nix: Don't make a copy on NixpkgsEelco Dolstra2020-02-101-1/+1
| * | | | | lib/tests/misc.nix: Fix dependency on currentSystem•••This doesn't work in pure mode. Eelco Dolstra2020-02-101-1/+1
* | | | | | Merge pull request #79291 from chkno/remove-isArm•••Remove isArmworldofpeace2020-02-082-4/+1
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | stdenv: Remove isArm (use isAarch32 instead)•••isArm has been deprecated for three releases. All references have been removed. Tree-wide substitution was performed in #37401 21 months ago. Chuck2020-02-051-3/+0
| * | | | | lib.systems.elaborate: isArm -> isAarch32•••This is the last reference to isArm. isArm is deprecated after 18.03. This substitution was performed tree-wide in #37401. Chuck2020-02-051-1/+1
* | | | | | Revert "Revert "Merge master into staging-next""•••In 87a19e9048773d5a363679617406ad148d36c3b8 I merged staging-next into master using the GitHub gui as intended. In ac241fb7a570d6cf81d229ad22a8889602639160 I merged master into staging-next for the next staging cycle, however, I accidentally pushed it to master. Thinking this may cause trouble, I reverted it in 0be87c79797a5fa384fbc356c74ed54f9f7829ea. This was however wrong, as it "removed" master. This reverts commit 0be87c79797a5fa384fbc356c74ed54f9f7829ea. Frederik Rietdijk2020-02-051-1/+1
|/ / / / /
* | | | | Revert "Merge master into staging-next"•••I merged master into staging-next but accidentally pushed it to master. This should get us back to 87a19e9048773d5a363679617406ad148d36c3b8. This reverts commit ac241fb7a570d6cf81d229ad22a8889602639160, reversing changes made to 76a439239eb310d9ad76d998b34d5d3bc0e37acb. Frederik Rietdijk2020-02-051-1/+1
* | | | | lib/strings: fix comment typoRobert Helgesson2020-02-051-1/+1
|/ / / /
* | | | Merge pull request #78337 from Profpatsch/lib-improve-cli-module•••lib: improve cli moduleProfpatsch2020-01-244-50/+97
|\ \ \ \
| * | | | lib/cli: mkKey -> mkOptionName, use generators.mkValueStringDefault•••Let’s call them by what they are, option names. `generators.mkValueStringDefault` is a better value string renderer than plain `toString`. Also add docs to all options. Profpatsch2020-01-231-11/+25
| * | | | lib/generators: floats are not supported in mkValueStringDefault•••They are cut off after a few decimal places; we cannot in good faith define a default string representation with that. Profpatsch2020-01-231-0/+3
| * | | | lib/cli: rename `renderX` options to `mkX`•••Mirrors the naming scheme in `generators.nix`, for consistency. Also rename `key` to `k` and value to `v` to aid readability to the code structure. Profpatsch2020-01-231-17/+14
| * | | | lib/cli,lib/tests/misc: somewhat more standard formattingProfpatsch2020-01-232-76/+61
| * | | | lib/cli: encodeGNUCommandLine -> toGNUCommandLineShell•••The semantic difference between `encode` and `to` is not apparent. Users are likely to confuse both functions (which leads to unexpected error messages about the wrong types). Like in `generators.nix`, all functions should be prefixed by `to`. Furthermore, converting to a string depends on the target context. In this case, it’s a POSIX shell, so we should name it that (compare `escapeShellArg` in `strings.nix`). We can later add versions that escape for embedding in e.g. python scripts or similar. Profpatsch2020-01-232-4/+51
| * | | | lib/cli: unexport symbols & sort with generators•••lib/cli is very similar to generators, so it should follow largely the same interface. Similar to how generators isn’t exported, we should also namespace cli by default (plus “cli” is only three characters to type). Profpatsch2020-01-231-3/+4
* | | | | Merge pull request #78058 from mayflower/nixos/version-gitdir-symlink•••nixos/version: fix case where .git is a symlinkFranz Pletz2020-01-243-2/+3
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | nixos/version: fix case where .git is a symlink•••Before c9214c394b248e1f26e45dbe1be2bd82363af3a6 and 9d396d2e426b9a765de0b8999aa214f1259633e6 if .git is symlink the version would gracefully default to no git revision. With those changes an exception is thrown instead. This introduces a new function `pathIsGitRepo` that checks if `commitIdFromGitRepo` fails without error so we don't have to reimplement this logic again and can fail gracefully. Franz Pletz2020-01-203-2/+3
* | | | | Merge pull request #77855 from AndersonTorres/update/notion•••notion: 3-2017050501 -> 3-2019050101Anderson Torres2020-01-221-5/+0
|\ \ \ \ \
| * | | | | Notion custom license: excludeAndersonTorres2020-01-171-5/+0
| |/ / / /