about summary refs log tree commit diff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
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-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-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
2022-07-03lib.systems.examples: canonicalize MIPS triplesAlyssa Ross1-14/+12
In Nixpkgs, we assume that the "config" field is a canonicalized GNU triple. I noticed that non-canonical values were being used here, because the pkgsCross.mips64el-linux-gnu triples did not contain the vendor field, but the pkgsCross.mips64el-linux-gnu.pkgsStatic did. Here, I've run all the MIPS triples in lib.systems.examples through config.sub to canonicalize them. I think this will avoid nasty surprises in future. Tested by building Nix and the bootstrap files for pkgsCross.mips64el-linux-gnu.
2022-07-02lib.licenses: add Aladdin Free Public Licensetoastal1-0/+6
2022-06-29canExecute: check for androidJari Vetoniemi1-0/+1
2022-06-29update android targets to recommended onesJari Vetoniemi1-5/+5
2022-06-27lib/options: Add hint for debugging infinite recursion in docsRobert Hensing1-0/+2
2022-06-25lib.types, nixos/users: Make passwdEntry availableKlemens Nanni1-0/+6
More nixpkgs code such as `boot.initrd.systemd.emergencyAccess` defines options that takes hashed passwords, so move the type definition from modules/ into lib/. The type definition itself stays unchanged.
2022-06-21lib/options: Add showOptionWithDefLocsRobert Hensing2-1/+8
2022-06-21Merge pull request #176146 from pennae/module-docs-markdownRobert Hensing2-1/+17
treewide: markdown option docs