about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2022-09-26Merge staging-next into staginggithub-actions[bot]2-2/+17
2022-09-25lib/types.nix: Document that it should not be usedpiegames1-2/+16
Co-authored-by: Robert Hensing <roberth@users.noreply.github.com> Co-authored-by: Valentin Gagarin <valentin.gagarin@tweag.io>
2022-09-25Merge branch 'amjoseph-nixpkgs-pr/resume182058' into stagingtoonn1-0/+14
2022-09-25unionOfDisjoint: use builtins.intersectAttrsAdam Joseph1-5/+8
This brings two benefits: 1. The complete list of collisions is printed in the whenever any colliding attribute is accessed. 2. The sets are intersected using a C++ primitive, which runs in O(n) time (intersecting pre-sorted lists) with small constants rather than interpreted Nix code. Thanks to @toonn for prompting this improvement.
2022-09-24Merge pull request #189836 from erikarvstedt/options-definitionsWithLocationsRobert Hensing1-0/+1
lib/modules: add `definitionsWithLocations` to evaluated options
2022-09-17lib.types: Add parentheses where description is ambiguousRobert Hensing2-13/+122
2022-09-13Merge pull request #189314 from Artturin/addemulatoravailableArtturi1-30/+39
2022-09-12note that `unionOfDisjoint` is commutative, unlike //Adam Joseph1-1/+2
2022-09-12lib/attrsets.nix: add unionOfDisjointAdam Joseph1-0/+10
2022-09-11lib/systems: add emulatorAvailableArtturin1-30/+39
``` nix-repl> pkgsCross.arm-embedded.stdenv.hostPlatform.emulatorAvailable pkgsCross.arm-embedded.buildPackages false nix-repl> pkgsCross.aarch64-multiplatform.stdenv.hostPlatform.emulatorAvailable pkgsCross.aarch64-multiplatform.buildPackages true ``` will be useful for stuff like handling https://github.com/NixOS/nixpkgs/issues/187109
2022-09-10lib/options: deprecate docbook text and literalDocBookpennae1-1/+4
deprecate literalDocBook by adding a warning (that will not fire yet) to its uses and other docbook literal strings by adding optional warning message to mergeJSON.
2022-09-09Merge pull request #181834 from ncfavier/numbersSilvan Mosberger1-9/+33
lib/types: add `number`
2022-09-06lib/systems: uname.processor is "uname -m", not "uname -p" (#189958)Adam Joseph1-1/+1
The comment in lib/systems/default.nix for uname.processor indicates that it should match `uname -p`. I tried that command and found that it reports `unknown` on all of these machines: - `x86_64-linux` - `aarch64-linux` - `mips64el-linux` - `powerpc64le-linux` The command `uname -m` reports the expected value on all of the above. I think the comment is wrong. So I fixed it.
2022-09-05lib/modules: add `definitionsWithLocations` to evaluated optionsErik Arvstedt1-0/+1
This attr provides the location of each definition. This is particularly useful for introspecting options of type `attrsOf`. E.g., it allows finding the location of a systemd service definition by parsing `options.systemd.services.definitionsWithLocations`.
2022-09-05Merge pull request #161118 from arkivm/init-dwarf2jsonJonas Heinrich1-0/+5
dwarf2json: init at unstable-2021-04-15
2022-09-01Merge branch 'master' into option-docs-mdpennae7-6/+32
2022-08-31lib/modules: convert option description to MDpennae2-78/+44
2022-08-31Merge pull request #188289 from erikarvstedt/fix-disabled-modules-abs-pathsRobert Hensing3-1/+9
lib.modules: support strings with absolute paths in `disabledModules`
2022-08-31lib.modules: support strings with absolute paths in `disabledModules`Erik Arvstedt3-1/+9
This is particularly useful for disabling modules defined in a flake. Example: disabledModules = [ "${flake}/modules/mymodule.nix" ]; Previously, absolute string paths were internally prepended with `modulesPath`, which caused the module filtering to fail.
2022-08-30lib/options: add mdDoc support to mkEnableOptionpennae1-1/+4
2022-08-28lib/systems/doubles: add ELFvx GNU ABIsMinijackson1-1/+3
2022-08-28lib/systems: add convenience isAbiElfv2 functionMinijackson1-0/+7
2022-08-28lib/systems/examples: use provided ABIs in PPC64 tripleMinijackson1-3/+2
2022-08-28lib/systems/parse: use ELFv2 by default for PPC64 BEMinijackson1-0/+2
2022-08-28lib/systems: add elfv1 / elfv2 ABIsMinijackson2-1/+9
2022-08-25lib/systems: add MicroBlaze architecturesMinijackson5-7/+15
2022-08-24Merge #186941: staging-next 2022-08-16Vladimír Čunát1-1/+7
2022-08-24Merge pull request #187884 from helsinki-systems/feat/perl-sriStig1-1/+1
perlPackages: Switch to SRI hashes, add `hash` support to bootstrap fetchurl, bump minimal nix version
2022-08-24Merge branch 'master' into staging-nextVladimír Čunát1-0/+5
2022-08-24perlPackages.Crypt{Blowfish,DES,IDEA}: Use correct licenseMichal Sojka1-0/+5
Recent commit 59356f11c1f ("perlPackages: Ensure all packages have a license", 2022-08-22) added a license field to Perl packages where the license was missing. The above mentioned packages got assigned `unfreeRedistributable` license, which is not precise and makes all packages depending on them unbuildable without `NIXPKGS_ALLOW_UNFREE`. The packages actually have a license which SPDX calls BSD-4-Clause-Shortened (https://spdx.org/licenses/BSD-4-Clause-Shortened.html). In this commit, we add this license to the list of allowed licenses and change the license field of the mentioned packages. Closes #188103
2022-08-24boostrap fetchurl: Add SRI supportJanne Heß1-1/+1
2022-08-22Merge master into staging-nextgithub-actions[bot]1-0/+10
2022-08-22perlPackages: Clarify all unfree licensesJanne Heß1-0/+10
2022-08-21Merge master into staging-nextgithub-actions[bot]1-1/+1
2022-08-20Fix a typo in the lib.foldr docstringSkyler1-1/+1
- This quote mark should be a backtick - Using a quote mark instead of a backtick breaks formatting when rendering the docs
2022-08-16lib/systems: Add staticLibrary and libraryDaniel Olsen1-1/+7
staticLibrary includes common extensions for static libraries library is a new common attribute that includes both shared and static extensions
2022-08-08Merge pull request #181222 from hercules-ci/module-specialArgsRobert Hensing1-0/+10
`_module.specialArgs` + unit test for nixos/documentation module
2022-08-04Merge remote-tracking branch 'origin/master' into haskell-updatessternenseemann1-3/+0
2022-08-02lib/system: resolve TODOSandro1-3/+0
2022-07-30Merge master into haskell-updatesgithub-actions[bot]1-0/+1
2022-07-29lib/systems/inspect.nix: add isAarchSandro1-0/+1
2022-07-28haskell.compiler: ghc923 -> ghc924sternenseemann1-1/+1
https://www.haskell.org/ghc/download_ghc_9_2_4.html
2022-07-27Merge pull request #182217 from GuillaumeDesforges/GuillaumeDesforges@dbx-initSandro1-0/+7
2022-07-27Merge #170736: lib/systems/platforms.nix: fix mips32 ABIVladimír Čunát1-2/+2
2022-07-25python3Packages.dbx: 0.5.0Guillaume Desforges1-0/+7
2022-07-24lib/types: add `number`Naïm Favier1-9/+33
For numbers that can be ints or floats.
2022-07-22Merge pull request #179002 from klemensn/move-passwdEntry-typeFlorian Klink1-0/+6
move passwdEntry type
2022-07-21lib/modules: Add _module.specialArgsRobert Hensing1-0/+10
2022-07-18Merge pull request #160554 from Cloudef/android-prebuiltRick van Schijndel2-5/+6
Fix android prebuilt toolchains
2022-07-04lib/trivial: Update oldestSupportedReleaseJanne Heß1-1/+1