summaryrefslogtreecommitdiff
path: root/lib (follow)
Commit message (Expand)AuthorAgeFilesLines
* lib: add missing removeAttrs builtin•••I'm expecting all the builtins.* functions to be available in lib.* zimbatm2023-04-191-1/+1
* Merge pull request #221204 from tweag/deprecate-paths-to-strings•••lib.strings: Prevent paths as inputs in some functionsSilvan Mosberger2023-04-041-11/+75
|\
| * lib.strings.remove{Prefix,Suffix}: Deprecate for path prefix/suffix arguments•••See also parent commits Silvan Mosberger2023-03-151-5/+23
| * lib.strings.normalizePath: Deprecate for path values•••There's no need to call this function on path data types, and it's confusing with the new lib.path library functions Silvan Mosberger2023-03-151-1/+14
| * lib.strings: Deprecate path prefix/suffix/infix arguments•••lib.{hasPrefix,hasInfix,hasSuffix} would otherwise return an always-false result, which can be very unexpected: nix-repl> lib.strings.hasPrefix ./lib ./lib/meta.nix false Silvan Mosberger2023-03-151-5/+38
* | Merge pull request #222516 from ncfavier/options-better-error•••lib/modules: better error for invalid option declarationsNaïm Favier2023-04-042-5/+9
|\ \
| * | lib/modules: better error for invalid option declarations•••Make `byName` aware of whether it's processing options or config to give slightly more accurate error messages. Naïm Favier2023-03-222-5/+9
* | | Merge pull request #219826 from noctarius/master•••Fixed TimescaleDB License InformationMario Rodas2023-04-011-0/+7
|\ \ \
| * | | timescaledb: Fixed the licensing for the timescaledb package to be split into...•••TimescaleDB provides two types of licenses, Apache 2.0 and Timescale Community License (TSL), with different feature sets. While all the code is in the same repository, the build system can build both versions depending on the build parameters set in. Co-authored-by: Emily Lange <git@indeednotjames.com> Christoph Engelbert (noctarius)2023-03-241-0/+7
| |/ /
* / / lib/customisation: callPackageWith should abort with errors•••ofborg relies on the behavior that existed prior to 1c00bf394867b07ed7a908408d8bc1d0afd9fa49, where evaluation would immediately abort due to a missing argument (whether it be an aliased package when `allowAliases = false;` or a typo'd or otherwise nonexistent package). If `callPackageWith` `throw`s instead of `abort`s, the following `nix-env` invocation does not fail fast but instead silently skips the attribute (assuming there is a package that has an aliased package in its `autoArgs`): $ nix-env -qa --json --file . --arg config '{ allowAliases = false; }' &>/dev/null $ echo $? 0 This does change the error output when there is a missing package (for any of the reasons mentioned above), though. Before this change, the errors looked like this: $ nix-build -A hello --arg config '{ allowAliases = false; }' error: … while calling the 'throw' builtin at /home/vin/workspace/vcs/nixpkgs/master/lib/customisation.nix:179:65: 178| 179| in if missingArgs == [] then makeOverridable f allArgs else throw error; | ^ 180| error: Function called without required argument "bash_5" at /home/vin/workspace/vcs/nixpkgs/master/pkgs/applications/misc/hello/default.nix:8, did you mean "bash" or "bashdb"? And the errors now look like this: $ nix-build -A hello --arg config '{ allowAliases = false; }' error: … while calling the 'abort' builtin at /home/vin/workspace/vcs/nixpkgs/master/lib/customisation.nix:179:65: 178| 179| in if missingArgs == [] then makeOverridable f allArgs else abort error; | ^ 180| error: evaluation aborted with the following error message: 'Function called without required argument "bash_5" at /home/vin/workspace/vcs/nixpkgs/master/pkgs/applications/misc/hello/default.nix:8, did you mean "bash" or "bashdb"?' Cole Helbling2023-03-241-1/+1
|/ /
* | Merge pull request #219747 from Stunkymonkey/deprecate-isNullBernardo Meurer2023-03-161-1/+1
|\ \
| * | treewide: deprecate isNull•••https://nixos.org/manual/nix/stable/language/builtins.html#builtins-isNull Felix Buehler2023-03-061-1/+1
* | | Merge pull request #209099 from infinisil/lib.path.subpath.join•••lib.path.subpath.join: initSilvan Mosberger2023-03-142-0/+107
|\ \ \
| * | | lib.path.subpath.join: init•••This function can be used to safely join subpaths together Silvan Mosberger2023-02-132-0/+107
| | |/ | |/|
* | | Merge pull request #219027 from NixOS/haskell-updates•••haskellPackages: update stackage and hackage; haskellPackages.ghc: 9.2.6 -> 9.2.7sternenseemann2023-03-134-4/+7
|\ \ \
| * \ \ Merge master into haskell-updatesgithub-actions[bot]2023-03-107-6/+176
| |\ \ \
| * \ \ \ Merge master into haskell-updatesgithub-actions[bot]2023-03-093-91/+10
| |\ \ \ \
| * | | | | haskell.compiler.ghcHEAD: 9.7.20221224 -> 9.7.20230217•••- Christmas is over! - Upstream has changed the name of the target triplet used for the JS backend from js-unknown-ghcjs to javascript-unknown-ghcjs, since Cabal calls the architecture "javascript": https://gitlab.haskell.org/ghc/ghc/-/commit/6636b670233522f01d002c9b97827d00289dbf5c Since the triplet is made up anyways, i.e. autoconf does not support it and Rust uses different triplets for its emscripten backends, we'll just change it as well. - Upstream fixed the problem with ar(1) being invoked incorrectly by stage0: https://gitlab.haskell.org/ghc/ghc/-/commit/e987e345c807035e4637ca3eae227ae501e16c42 sternenseemann2023-03-084-4/+7
* | | | | | init: lib.foldlAttrs•••- provide comprehensive example - add unit test hsjobeki2023-03-113-1/+92
| |_|/ / / |/| | | |
* | | | | lib.systems: don't try to emulate s390-linux•••We don't have an emulator that can do this. Alyssa Ross2023-03-091-1/+2
* | | | | 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