summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge pull request #211855 from hercules-ci/lib-modules-disabledModules-modul...•••lib/modules: Allow an "anonymous" module with key in disabledModulesRobert Hensing2023-03-096-5/+174
|\
| * lib/modules: Allow an "anonymous" module with key in disabledModules•••This makes the following work disabledModules = [ foo.nixosModules.bar ]; even if `bar` is not a path, but rather a module such as { key = "/path/to/foo#nixosModules.bar"; config = ...; } By supporting this, the user will often be able to use the same syntax for both importing and disabling a module. This is becoming more relevant because flakes promote the use of attributes to reference modules. Not all of these modules in flake attributes will be identifiable, but with the help of a framework such as flake-parts, these attributes can be guaranteed to be identifiable (by outPath + attribute path). Robert Hensing2023-03-016-5/+174
* | Merge pull request #214941 from OPNA2608/init/katawa-shoujo•••katawa-shoujo: init at 1.3.1Sandro2023-03-081-0/+6
|\ \
| * | lib/licenses.nix: Add cc-by-nc-nd-30OPNA26082023-02-091-0/+6
* | | lib: remove deprecated functions•••all of these have been deprecated and raising warnings since 18.09. it's about time we actually made good on "will be removed in the next release". pennae2023-03-082-91/+4
* | | Merge pull request #211950 from Atemu/armv8-no-more-armv7•••lib/systems/parse: stop considering armv8a able to execute armv7lAtemu2023-03-071-13/+2
|\ \ \
| * | | lib/systems/parse: stop considering armv8a able to execute armv7l•••In the past, most (if not all) armv8 CPUs could also execute armv7. However, with the advent of Apple Silicon, aarch64 CPUs without any aarch32 capabilities are now wide-spread among users. Atemu2023-01-211-13/+2
* | | | Merge pull request #210125 from OPNA2608/fix/pdisk_patchurlSandro2023-03-051-1/+0
|\ \ \ \
| * | | | licenses: Remove unnecessary archive.org link for APSL-1.0•••SPDX has a copy of it, and the url gets overridden with the spdx.org one anyway. OPNA26082023-01-171-1/+0
* | | | | lib/options: fix mkPackageOption docs•••nixdoc takes everything from Type: to Example: as the type, which misrendered a large part of the docs. it also drops sorely needed spaces where the type had line breaks, so all has to be on one line (or use non-standard literal spaces, which is probably worse). also clarify what the `?` for arguments mean while we're here. pennae2023-03-051-7/+5
* | | | | lib/strings: hide asciiTable•••Since it's an attribute set, the lib function location generating code tries to generate locations for each of the characters... Naïm Favier2023-03-041-2/+2
* | | | | Merge pull request #219235 from patwid/strings-escape-query-for-url-encodingValentin Gagarin2023-03-044-5/+32
|\ \ \ \ \
| * | | | | strings: add escapeQuery for url encodingPatrick Widmer2023-03-034-5/+32
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-02-261-15/+48
|\ \ \ \ \ \
| * | | | | | lib/options: Add more options to mkPackageOptionAnselm Schüler2023-02-261-15/+48
| |/ / / / /
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-02-231-5/+5
|\| | | | |
| * | | | | lib.licenses.asl20-llvm: replace llvm-exception•••LLVM-exception only makes sense when used with the Apache 2.0 license, so let's combine them, so it's not possible to forget one of them like happened with llvm_15. Alyssa Ross2023-02-231-5/+5
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-02-231-8/+56
|\| | | | |
| * | | | | improves: comprehensivenesshsjobeki2023-02-231-8/+3
| * | | | | add better documentation comments to lib.runTestshsjobeki2023-02-231-6/+59
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-02-211-6/+4
|\| | | | |
| * | | | | Merge pull request #216983 from ncfavier/showOption-comment•••lib/options: update showOption commentNaïm Favier2023-02-211-6/+4
| |\ \ \ \ \
| | * | | | | lib/options: update showOption commentNaïm Favier2023-02-181-6/+4
| | | |_|_|/ | | |/| | |
* | | | | | Merge master into staging-nextgithub-actions[bot]2023-02-151-6/+13
|\| | | | |
| * | | | | Merge pull request #203539 from SuperSandro2000/architectures-expand-inferiors•••lib/systems/architectures: expand inferiorsSandro2023-02-151-6/+13
| |\ \ \ \ \ | | |/ / / / | |/| | | |
| | * | | | lib/systems/architectures: expand inferiorsSandro Jäckel2022-11-291-6/+13
* | | | | | Merge staging-next into staginggithub-actions[bot]2023-02-101-2/+5
|\| | | | |
| * | | | | Merge pull request #215455 from domenkozar/module-errors•••nixos: Improve module conflict error messagesDomen Kožar2023-02-101-2/+5
| |\ \ \ \ \ | | |_|_|_|/ | |/| | | |
| | * | | | types: suggest how to resolve the conflictDomen Kožar2023-02-091-2/+5
| | * | | | types: explicitly state unique options are expected to be uniqueDomen Kožar2023-02-091-1/+1
* | | | | | Merge staging-next into staginggithub-actions[bot]2023-02-073-8/+109
|\| | | | |
| * | | | | Merge pull request #214930 from sheepforce/nwchem•••nwchem: init at 7.0.2markuskowa2023-02-071-0/+7
| |\ \ \ \ \
| | * | | | | lib/licenses: add ecl20Phillip Seeber2023-02-071-0/+7
| * | | | | | Merge pull request #208887 from tweag/lib.path.append•••lib.path.append: initSilvan Mosberger2023-02-072-8/+102
| |\ \ \ \ \ \ | | |/ / / / / | |/| | | | |
| | * | | | | lib.path.append: init•••This function can be used to append strings to Nix path values in a safe way. Silvan Mosberger2023-01-182-1/+82
| | * | | | | lib.path: Minor improvements•••- Use isValid when possible instead of subpathInvalidReason: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068714681 - Add documentation to function arguments - Use newlines for error messages: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1069737602 - Add short comments for the unit test groups: https://github.com/NixOS/nixpkgs/pull/208887#discussion_r1072913051 - Slight formatting improvement for laws: https://github.com/NixOS/nixpkgs/pull/209099#discussion_r1068707955 Silvan Mosberger2023-01-182-7/+20
* | | | | | | Merge staging-next into staginggithub-actions[bot]2023-02-073-1/+18
|\| | | | | |
| * | | | | | Merge pull request #206611 from h7x4/lib-lists-add-repeat•••lib.lists: add `replicate`Silvan Mosberger2023-02-073-1/+18
| |\ \ \ \ \ \
| | * | | | | | lib.lists: add `replicate`•••`replicate` returns n copies of an element as a list. Co-Authored-By: Silvan Mosberger <contact@infinisil.com> h7x42023-02-063-1/+18
* | | | | | | | Merge staging-next into staginggithub-actions[bot]2023-02-071-0/+10
|\| | | | | | |
| * | | | | | | Merge pull request #214856 from vamega/bencode-pyBernardo Meurer2023-02-061-0/+10
| |\ \ \ \ \ \ \ | | |_|_|/ / / / | |/| | | | | |
| | * | | | | | bencode-py: init at 4.0.0Varun Madiath2023-02-061-0/+10
* | | | | | | | Merge pull request #211685 from Artturin/splicingstuff1-splitArtturi2023-02-031-1/+8
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | |
| * | | | | | | lib.extendDerivation: Fix interaction between output selection and overrideAttrsRobert Hensing2023-01-201-1/+8
* | | | | | | | Merge pull request #205557 from ncfavier/concatLines•••lib/strings: add `concatLines`Silvan Mosberger2023-01-313-1/+17
|\ \ \ \ \ \ \ \
| * | | | | | | | lib/strings: add `concatLines`•••Like `unlines` from Haskell. The aim is to replace the `concatStringsSep "\n"` pattern for generated files, which doesn't add a final newline. Naïm Favier2022-12-103-1/+17
* | | | | | | | | Merge pull request #213650 from urandom2/libdoc•••lib: standardise attrset type syntaxSilvan Mosberger2023-01-313-10/+10
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | lib: standardise attrset type syntax•••There are a number of different syntaxes used for attrset type signatures in our doc strings, this change standardises upon one that uses :: for specifying attribute type, and ; terminators to be consistent with nix syntax. There are no bugs in the functions themselves, just that different syntaxes may confuse new users. Colin Arnott2023-01-303-10/+10
* | | | | | | | | | Merge master into staging-nextgithub-actions[bot]2023-01-312-6/+15
|\| | | | | | | | |
| * | | | | | | | | Merge pull request #212939 from amjoseph-nixpkgs/pr/isStatic•••meta: replace predicates with pattern over elaborated platformFlorian Klink2023-01-302-6/+15
| |\ \ \ \ \ \ \ \ \