summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
...
| * | | lib.sanitizeDerivationName: Optimize the common caseRobert Hensing2022-03-311-1/+8
* | | | lib/customization: Improve callPackage error message for missing args•••This uses the levenshtein distance to look through all possible arguments to find ones that are close to what was requested: error: Function in /home/infinisil/src/nixpkgs/pkgs/tools/text/ripgrep/default.nix called without required argument "fetchFromGithub", did you mean "fetchFromGitHub" or "fetchFromGitLab"? With https://github.com/NixOS/nix/pull/3468 (in current nixUnstable) the error message becomes even better, adding line location info Silvan Mosberger2022-04-011-2/+49
* | | | lib/tests: Add tests for levenshtein functionsSilvan Mosberger2022-04-011-0/+152
* | | | lib/strings: Add levenshtein distance functions•••Adds some functions related to string similarity: - lib.strings.commonPrefixLength - lib.strings.commonSuffixLength - lib.strings.levenshtein - lib.strings.levenshteinAtMost Silvan Mosberger2022-04-011-0/+127
* | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-291-1/+1
|\| | |
| * | | Merge pull request #165956 from ncfavier/lib-warn-throw•••lib/trivial: actually expose warnIfNot and throwIfRobert Hensing2022-03-281-1/+1
| |\ \ \
| | * | | lib/trivial: actually expose warnIfNot and throwIfNaïm Favier2022-03-271-1/+1
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-281-0/+10
|\| | | |
| * | | | Merge pull request #165672 from yoctocell/patatt-initSandro2022-03-271-0/+5
| |\ \ \ \
| | * | | | lib.licenses: add MIT-0•••<https://spdx.org/licenses/MIT-0.html> Xinglu Chen2022-03-241-0/+5
| * | | | | Merge pull request #165597 from ckiee/generaluser-initSandro2022-03-271-0/+5
| |\ \ \ \ \ | | |_|/ / / | |/| | | |
| | * | | | soundfont-generaluser: init at 1.471ckie2022-03-241-0/+5
| | | |/ / | | |/| |
* | | | | Merge remote-tracking branch 'origin/master' into haskell-updatessternenseemann2022-03-263-38/+6
|\| | | |
| * | | | Merge pull request #164651 from Infinisil/remove-optionSet•••lib/modules: Finally remove deprecated types.optionSetSilvan Mosberger2022-03-253-38/+6
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | lib/modules: Finally remove deprecated types.optionSet•••types.optionSet has been deprecated for almost 10 years now (0e333688cea468a28516bf6935648c03ed62a7bb)! A removal was already attempted in 2019 (27982b408e465554b8831f492362bc87ed0ec02a), but it was promptly reinstantiated since some third-party uses were discovered (f531ce75e4178c6867cc1d0f7fec96b2d5c3f1cb). It's finally time to remove it for good :) Silvan Mosberger2022-03-183-38/+6
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-253-5/+25
|\| | | |
| * | | | Merge pull request #164660 from ncfavier/tests-restrict-arguments•••nixos/testing: restrict arguments to makeTestRobert Hensing2022-03-243-5/+25
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | Merge remote-tracking branch 'upstream/master' into tests-restrict-argumentsRobert Hensing2022-03-2123-40/+578
| | |\ \ \
| | * | | | lib: Add toFunctionRobert Hensing2022-03-212-1/+21
| | * | | | lib: applyIfFunction -> applyModuleArgsIfFunctionRobert Hensing2022-03-212-4/+4
| | | |_|/ | | |/| |
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-231-1/+15
|\| | | |
| * | | | Merge pull request #164890 from ncfavier/lib-warn-throw•••lib/trivial: add warnIfNot and throwIfSilvan Mosberger2022-03-221-1/+15
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | lib/trivial: add warnIfNot and throwIf•••Negated versions of warnIf and throwIfNot. Naïm Favier2022-03-191-1/+15
| | | |/ | | |/|
* | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-223-2/+47
|\| | |
| * | | Merge pull request #163451 from hercules-ci/stop-premature-warnings•••Stop premature warnings, including `nix.settings` migrationKevin Cox2022-03-213-2/+47
| |\ \ \
| | * | | lib.mkRenamedOptionModuleWith: Remove warnWhenRead•••Let's keep things simple and not poke holes in the improved migration process. Robert Hensing2022-03-211-9/+1
| | * | | lib: Add mkRenamedOptionModuleWith•••Adds support for sinceRelease Robert Hensing2022-03-093-2/+55
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-204-12/+277
|\| | | |
| * | | | Merge pull request #147077 from Infinisil/updateAttrPaths•••Introduce `lib.updateManyAttrsByPath`Robert Hensing2022-03-194-12/+277
| |\ \ \ \ | | |_|/ / | |/| | |
| | * | | lib.attrsets: Introduce updateManyAttrsByPathSilvan Mosberger2022-03-183-2/+214
| | * | | lib.lists: Use builtins.groupBy for lib.groupBy•••builtins.groupBy is much more performant. It was introduced in https://github.com/NixOS/nix/pull/5715 Silvan Mosberger2022-03-182-9/+26
| | * | | lib.attrsets: Introduce showAttrPathSilvan Mosberger2022-03-183-2/+38
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-187-6/+89
|\| | | |
| * | | | Merge pull request #161158 from a-m-joseph/mips64el-support-first-steps•••mips64el supportJohn Ericson2022-03-177-6/+89
| |\ \ \ \
| | * | | | Ericson2314's suggestion here: https://github.com/NixOS/nixpkgs/pull/161158#d...Adam Joseph2022-03-102-22/+26
| | * | | | This commit adds only comments to platforms.nix.Adam Joseph2022-03-101-0/+10
| | * | | | comment: explain why gnuabi64 has a rustc.config but gnuabin32 does not.Adam Joseph2022-03-101-1/+1
| | * | | | remove float = "hard" from mips entriesAdam Joseph2022-03-101-12/+12
| | * | | | https://github.com/NixOS/nixpkgs/pull/161158#pullrequestreview-903824553Adam Joseph2022-03-101-12/+12
| | * | | | lib/systems: add mips64el definitions•••MIPS has a large space of {architecture,abi,endianness}; this commit adds all of them to lib/systems/platforms.nix so we can be done with it. Currently lib/systems/inspect.nix has a single "isMips" predicate, which is a bit ambiguous now that we will have both mips32 and mips64 support, with the latter having two ABIs. Let's add four new predicates (isMips32, isMips64, isMips64n32, and isMips64n64) and treat the now-ambiguous isMips as deprecated in favor of the more-specific predicates. These predicates are used mainly for enabling/disabling target-specific workarounds, and it is extremely rare that a platform-specific workaround is needed, and both mips32 and mips64 need exactly the same workaround. The separate predicates (isMips64n32 and isMips64n64) for ABI distinctions are, unfortunately, useful. Boost's user-scheduled threading (used by nix) does does not currently supports mips64n32, which is a very desirable ABI on routers since they rarely have more than 2**32 bytes of DRAM. Adam Joseph2022-03-107-6/+75
* | | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-1711-20/+165
|\| | | | |
| * | | | | Merge pull request #162271 from Infinisil/warn-no-type•••Throw an error for options without a typeRobert Hensing2022-03-161-1/+1
| |\ \ \ \ \
| | * | | | | lib/options: Throw error for options without a type•••Makes all options rendered in the manual throw an error if they don't have a type specified. This is a follow-up to #76184 Co-Authored-By: Silvan Mosberger <contact@infinisil.com> Janne Heß2022-02-281-1/+1
| * | | | | | Merge pull request #156533 from hercules-ci/issue-146882-transparent-submodul...•••lib.modules: Let module declare options directly in bare submoduleSilvan Mosberger2022-03-1610-19/+164
| |\ \ \ \ \ \ | | |_|_|_|_|/ | |/| | | | |
| | * | | | | lib/modules.nix: Add comment about internal shorthand null valueRobert Hensing2022-03-071-0/+3
| | * | | | | lib/tests/modules: Add test case for duplicate option error file locationRobert Hensing2022-03-072-0/+11
| | * | | | | lib/modules.nix: Move comment to the actual legacy codeRobert Hensing2022-03-071-3/+4
| | * | | | | Revert "lib.modules: Remove redundant fixupOptionType in option injection"•••This reverts commit 6b077c47ff14cb9a4a8f5cb8986fa83ff626c732. Thanks Infinisil for discovering this problem: > After a lot of trial and error, trying to prove why fixupOptionType should > be used here or not, I figured it out: It's needed for the sake of file > locations in error messages. Robert Hensing2022-03-071-1/+1
| | * | | | | lib.modules: Inline a private function•••This should save about four calls per module. Robert Hensing2022-03-031-7/+7
| | * | | | | lib.modules: Default shorthandOnlyDefinesConfig to true when nullRobert Hensing2022-03-031-1/+5