Commit Graph

4001 Commits

Author SHA1 Message Date
Artturin
04e7fe78c0 lib.systems.examples: Fix deprecated attr
`For android 'sdkVer' has been renamed to 'androidSdkVersion'`

While doing the above rename I forgot to consider if there were still
darwin platforms in `lib.systems.examples` using `sdkVer`

These still fail eval, but that happened before the renaming too.

`error: Unsupported sdk: 14.3`

(cherry picked from commit aed1142d79)
2024-10-13 20:16:01 +00:00
Artturin
799b4451fd lib.systems: throw if sdkVer or ndkVer are used for android.
Those attrs have been renamed and throwing is the best way to show it,
if we only warned then the user would only get an error like this `error: Unsupported sdk: 33`
from `pkgs/top-level/darwin-packages.nix`.

If someone wants to support multiple NixOS versions then they can simply
set both attrs. (`!args ? androidSdkVersion` is for that)

(cherry picked from commit 35e5943d69)
2024-08-22 19:54:59 +03:00
Artturin
b6e813b8cd treewide: Rename android sdkVer and ndkVer
`sdkVer` conflicts with the old `sdkVer`(now `darwinSdkVersion` but that still uses `sdkVer` if set) used by darwin

This shouldn't be an issue but due to `pkgs/development/interpreters/python/cpython/default.nix`
running `lib.filterAttrs (n: v: ! lib.isDerivation v && n != "passthruFun")` on it's inputs (2 of them are darwin only)
the `throw "Unsupported sdk...` in `pkgs/top-level/darwin-packages.nix` will be triggered.

After this change `pkgsCross.armv7a-android-prebuilt.python3.pythonOnBuildForHost` won't fail with
`error: Unsupported sdk: 33`

Issue was bisected to 3cb23cec23

(cherry picked from commit 1144d46f95)
2024-08-22 19:54:07 +03:00
Tristan Ross
fb343de825 lib.systems.flakeExposed: exclude systems which are not bootstrapped
(cherry picked from commit ecf6827049)
2024-07-10 13:03:04 -07:00
Silvan Mosberger
2efcf5bc75 lib: Add a TODO for builtins not available in sub-libraries
(cherry picked from commit 5d892a8ea5)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
b76d31fb39 lib.replaceStrings: inherit from lib.strings
(cherry picked from commit 1e4f04d4d6)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
9566a74c2b lib.readFile: inherit from lib.trivial
(cherry picked from commit d3c09b9327)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
369674a543 lib.genericClosure: inherit from lib.trivial
(cherry picked from commit e3b0f46af9)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
7aa24848d5 lib.pathExists: inherit from lib.trivial
(cherry picked from commit e3faf23ba6)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
d5e4d89ee0 lib.getAttr: inherit from lib.attrsets
(cherry picked from commit 574611fe0b)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
3a1221a0f7 lib.isString: inherit from lib.strings
(cherry picked from commit 94a863973a)
2024-06-22 08:56:51 +00:00
Silvan Mosberger
f54ef335b4 lib.isList: inherit from lib.lists
(cherry picked from commit 6f7324c1f0)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
d01fe5dad1 lib.isInt: inherit from lib.trivial
(cherry picked from commit fa82e813f1)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
ecce24c6a3 lib.isBool: inherit from lib.trivial
(cherry picked from commit 5313a054d3)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
3ab68551ef lib.isAttrs: inherit from lib.attrsets
(cherry picked from commit 53744d55cd)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
7b83362d1a lib.hasAttr: inherit from lib.attrsets
(cherry picked from commit c3b87461e7)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
ee47d4e52e lib.elemAt: inherit from lib.lists
(cherry picked from commit 4bcc1d3450)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
21cf1881e7 lib.elem: inherit from lib.lists
(cherry picked from commit 46b7bbb660)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
a8d3ed1522 lib.deepSeq: inherit from lib.trivial
(cherry picked from commit f341dca2a2)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
1050b8d555 lib.sub: inherit from lib.trivial
(cherry picked from commit 8a6941dbef)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
6f6e290b93 lib.add: inherit from lib.trivial
(cherry picked from commit a32d38d380)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
36d56f8128 lib.lessThan: inherit from lib.trivial
(cherry picked from commit 74c87fd888)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
3bf1dc39bc lib.seq: inherit from lib.trivial
(cherry picked from commit 64e8494f8a)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
c251446ff2 lib.listToAttrs: inherit from lib.attrsets
(cherry picked from commit 597f62d782)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
bb10409bd4 lib.substring: inherit from lib.strings
(cherry picked from commit 00972297be)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
1388e0e034 lib.head: inherit from lib.lists
(cherry picked from commit f6cbaeca60)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
7ef53853f4 lib.tail: inherit from lib.lists
(cherry picked from commit 0a162f4dcd)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
e45dd3808b lib.stringLength: inherit from lib.strings
(cherry picked from commit 6e98b0c0c6)
2024-06-22 08:56:50 +00:00
Silvan Mosberger
a308e41f23 lib.length: inherit from lib.lists
(cherry picked from commit 357e954198)
2024-06-22 08:56:49 +00:00
Silvan Mosberger
04e7b4f06e lib.genList: inherit from lib.lists
(cherry picked from commit d81f4e5eba)
2024-06-22 08:56:49 +00:00
Silvan Mosberger
c90b5638be lib.filter: inherit from lib.lists
(cherry picked from commit 30def45e47)
2024-06-22 08:56:49 +00:00
Silvan Mosberger
788d392c8c lib.attrNames: inherit from lib.attrsets
(cherry picked from commit c60c3baf23)
2024-06-22 08:56:49 +00:00
Silvan Mosberger
59f4056c32 lib: inherit concatLists via lib.lists
(cherry picked from commit 69f84db442)
2024-06-22 08:56:49 +00:00
John Ericson
82ef0d2d7a lib.systems: Default useLLVM to true with OpenBSD too
Not just FreeBSD.

(cherry picked from commit bab20def47)
2024-06-21 01:10:32 +00:00
Silvan Mosberger
6f6bee1aa2 lib.split: Export from lib.strings.split
(cherry picked from commit 89f6418908)
2024-06-20 17:57:28 +00:00
Silvan Mosberger
de136430c7 lib.match: Export from lib.strings.match
(cherry picked from commit 6c6244c37f)
2024-06-20 17:57:28 +00:00
Silvan Mosberger
30fdfef44c lib.removeAttrs: Export from lib.attrsets.removeAttrs
(cherry picked from commit 18382c2ec8)
2024-06-20 17:57:28 +00:00
Silvan Mosberger
cf482ce70a lib.intersectAttrs: Export from builtins
(cherry picked from commit 56535c832f)
2024-06-20 17:57:28 +00:00
Silvan Mosberger
7443abfba9 lib.map: Export from lib.lists.map
(cherry picked from commit 4413a877bb)
2024-06-20 17:57:28 +00:00
Tristan Ross
e4df0129a7 lib/tests/release.nix: fix pkgs.lib error by passing lib
(cherry picked from commit 8bb66a4929)
2024-06-11 04:12:43 +02:00
Tristan Ross
b8f3f7984c lib/tests/release.nix: make pure
(cherry picked from commit 013e398b0f)
2024-06-11 01:59:11 +00:00
Gavin John
47e87374c1 licenses: Add NCBI-PD
(cherry picked from commit 361874c944)
2024-05-30 19:42:37 +00:00
Ali Abrar
2a2f78315c openbsd: init at 7.5
(cherry picked from commit 888dee445d)
2024-05-29 17:43:02 +00:00
Daniel Sidhion
f452bb946c
Merge pull request #312215 from hsjobeki/doc/lib-debug
doc: migrate lib.debug to doc-comment format
2024-05-20 23:20:36 -07:00
Johannes Kirschbauer
38cd8da809
doc: migrate filesets to doc-comment format (#303811)
* doc: migrate filesets to doc-comment format

* fix definition list indentation
2024-05-20 23:12:31 -07:00
Johannes Kirschbauer
dfffdf1426
doc: migrate lib.debug to doc-comment format 2024-05-16 15:52:50 +02:00
Pol Dellaiera
e6952e37ef
Merge pull request #306928 from ramboman/fix-fetchers-proxy-vars
lib.fetchers: Add uppercase proxy environment variables
2024-05-14 10:27:11 +02:00
Artemis Tosini
06b05d2289 freebsd: Cleanup, get ready to support version 14
* Extend libc

  Include non-libc core libraries in the libc package. Many of these
  mirror libraries present in glibc on linux, such as libgcc, libraries
  used for iconv, and libraries used for reading kernel info (libkvm,
  libprocstat, libmemstat).

  Without this many packages outside the freebsd tree would need to be
  modified to include standard dependencies which would already be on
  the system for other packages.

* Mark FreeBSD as using LLVM

* Update default LLVM version FreeBSD

* Use patch monolith

  The patchesRoot system combined with the fact that each derivation
  will Request specific names of patches makes it very annoying to use
  other FreeBSD source trees with nixpkgs. This new system allows
  providing one Or more entire trees of patches whose contents will be
  dynamically Parsed and only the relevant patches will be applied for
  any one Derivation.

  With this commit, the following knobs are available for specifying the
  FreeBSD source:

  - overriding `freebsd.versionInfo`, for picking another official
    supported FreeBSD release.

  - overriding `freebsd.source` for specifying a specific unpatched
    FreeBSD source tree.

  - overriding `freebsd.patches`, for specifying the patches to apply.

Co-Authored-by: Audrey Dutcher <audrey@rhelmot.io>
Co-Authored-by: John Ericson <John.Ericson@Obsidian.Systems>
2024-05-11 21:52:07 -04:00
Jan Tojnar
29521b42cf lib/gvariant: Use more specific instructions for int and attrset 2024-05-02 23:19:08 +02:00
Jan Tojnar
96e6f1a418 lib/gvariant: Fix error message for unsupported primitives
Without this, passing an integer to a setting will fail with a confusing error:

    error: cannot coerce an integer to a string
2024-05-02 23:19:08 +02:00