summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
* lib/systems/platforms: correctly import examples.nixArtturin2022-04-15
| | | | | before: :p lib.systems failed with error: getting status of '...examples': no such file or directory
* Merge pull request #164088 from ↵Silvan Mosberger2022-04-06
|\ | | | | | | | | Profpatsch/lib.generators-add-toINIWithGlobalSection lib.generators: add toINIWithGlobalSection
| * lib.generators: fix references to test fileProfpatsch2022-03-14
| |
| * lib.generators: add toINIWithGlobalSectionProfpatsch2022-03-14
| | | | | | | | | | | | | | As discussed in https://github.com/NixOS/nixpkgs/pull/118925#issuecomment-821112723, this is the best way of adding global sections to `toINI` without employing heuristics (i.e. checking whether something is an attrset).
* | Merge pull request #165540 from Infinisil/module-args-docsRobert Hensing2022-04-05
|\ \ | | | | | | lib/modules: Document `_module.args`
| * | lib/modules: Document _module.argsSilvan Mosberger2022-04-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Documents the _module.args option, motivated by many usages in Flakes, especially with the deprecation of extraArgs (https://github.com/NixOS/nixpkgs/commit/78ada833615d241ed76463aa5a024b614150eb4d) The documentation rendering for this option had to be handled a bit specially, since it's not declared in nixos/modules like all the other NixOS options. Co-Authored-By: pennae <github@quasiparticle.net> Co-Authored-By: Robert Hensing <robert@roberthensing.nl>
* | | Merge pull request #166383 from hercules-ci/always-sanitize-derivation-nameRobert Hensing2022-04-05
|\ \ \ | | | | | | | | Always sanitize derivation name
| * | | lib.sanitizeDerivationName: Simplify regexRobert Hensing2022-04-05
| | | | | | | | | | | | | | | | `^` and `$` are implicit in `match`.
| * | | lib.sanitizeDerivationName: Test with unicodeRobert Hensing2022-03-31
| | | |
| * | | lib.sanitizeDerivationName: Optimize the common caseRobert Hensing2022-03-31
| | | |
* | | | lib/customization: Improve callPackage error message for missing argsSilvan Mosberger2022-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | lib/tests: Add tests for levenshtein functionsSilvan Mosberger2022-04-01
| | | |
* | | | lib/strings: Add levenshtein distance functionsSilvan Mosberger2022-04-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds some functions related to string similarity: - lib.strings.commonPrefixLength - lib.strings.commonSuffixLength - lib.strings.levenshtein - lib.strings.levenshteinAtMost
* | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-29
|\| | |
| * | | Merge pull request #165956 from ncfavier/lib-warn-throwRobert Hensing2022-03-28
| |\ \ \ | | | | | | | | | | lib/trivial: actually expose warnIfNot and throwIf
| | * | | lib/trivial: actually expose warnIfNot and throwIfNaïm Favier2022-03-27
| | | | |
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-28
|\| | | |
| * | | | Merge pull request #165672 from yoctocell/patatt-initSandro2022-03-27
| |\ \ \ \
| | * | | | lib.licenses: add MIT-0Xinglu Chen2022-03-24
| | | | | | | | | | | | | | | | | | | | | | | | <https://spdx.org/licenses/MIT-0.html>
| * | | | | Merge pull request #165597 from ckiee/generaluser-initSandro2022-03-27
| |\ \ \ \ \ | | |_|/ / / | |/| | | |
| | * | | | soundfont-generaluser: init at 1.471ckie2022-03-24
| | | |/ / | | |/| |
* | | | | Merge remote-tracking branch 'origin/master' into haskell-updatessternenseemann2022-03-26
|\| | | |
| * | | | Merge pull request #164651 from Infinisil/remove-optionSetSilvan Mosberger2022-03-25
| |\ \ \ \ | | |_|/ / | |/| | | lib/modules: Finally remove deprecated types.optionSet
| | * | | lib/modules: Finally remove deprecated types.optionSetSilvan Mosberger2022-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 :)
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-25
|\| | | |
| * | | | Merge pull request #164660 from ncfavier/tests-restrict-argumentsRobert Hensing2022-03-24
| |\ \ \ \ | | |_|/ / | |/| | | nixos/testing: restrict arguments to makeTest
| | * | | Merge remote-tracking branch 'upstream/master' into tests-restrict-argumentsRobert Hensing2022-03-21
| | |\ \ \
| | * | | | lib: Add toFunctionRobert Hensing2022-03-21
| | | | | |
| | * | | | lib: applyIfFunction -> applyModuleArgsIfFunctionRobert Hensing2022-03-21
| | | |_|/ | | |/| |
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-23
|\| | | |
| * | | | Merge pull request #164890 from ncfavier/lib-warn-throwSilvan Mosberger2022-03-22
| |\ \ \ \ | | |_|/ / | |/| | | lib/trivial: add warnIfNot and throwIf
| | * | | lib/trivial: add warnIfNot and throwIfNaïm Favier2022-03-19
| | | |/ | | |/| | | | | | | | | Negated versions of warnIf and throwIfNot.
* | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-22
|\| | |
| * | | Merge pull request #163451 from hercules-ci/stop-premature-warningsKevin Cox2022-03-21
| |\ \ \ | | | | | | | | | | Stop premature warnings, including `nix.settings` migration
| | * | | lib.mkRenamedOptionModuleWith: Remove warnWhenReadRobert Hensing2022-03-21
| | | | | | | | | | | | | | | | | | | | | | | | | Let's keep things simple and not poke holes in the improved migration process.
| | * | | lib: Add mkRenamedOptionModuleWithRobert Hensing2022-03-09
| | | | | | | | | | | | | | | | | | | | Adds support for sinceRelease
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-20
|\| | | |
| * | | | Merge pull request #147077 from Infinisil/updateAttrPathsRobert Hensing2022-03-19
| |\ \ \ \ | | |_|/ / | |/| | | Introduce `lib.updateManyAttrsByPath`
| | * | | lib.attrsets: Introduce updateManyAttrsByPathSilvan Mosberger2022-03-18
| | | | |
| | * | | lib.lists: Use builtins.groupBy for lib.groupBySilvan Mosberger2022-03-18
| | | | | | | | | | | | | | | | | | | | | | | | | builtins.groupBy is much more performant. It was introduced in https://github.com/NixOS/nix/pull/5715
| | * | | lib.attrsets: Introduce showAttrPathSilvan Mosberger2022-03-18
| | | | |
* | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-18
|\| | | |
| * | | | Merge pull request #161158 from a-m-joseph/mips64el-support-first-stepsJohn Ericson2022-03-17
| |\ \ \ \ | | | | | | | | | | | | mips64el support
| | * | | | Ericson2314's suggestion here: ↵Adam Joseph2022-03-10
| | | | | | | | | | | | | | | | | | | | | | | | https://github.com/NixOS/nixpkgs/pull/161158#discussion_r822295406
| | * | | | This commit adds only comments to platforms.nix.Adam Joseph2022-03-10
| | | | | |
| | * | | | comment: explain why gnuabi64 has a rustc.config but gnuabin32 does not.Adam Joseph2022-03-10
| | | | | |
| | * | | | remove float = "hard" from mips entriesAdam Joseph2022-03-10
| | | | | |
| | * | | | https://github.com/NixOS/nixpkgs/pull/161158#pullrequestreview-903824553Adam Joseph2022-03-10
| | | | | |
| | * | | | lib/systems: add mips64el definitionsAdam Joseph2022-03-10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | | Merge master into haskell-updatesgithub-actions[bot]2022-03-17
|\| | | | |