1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00
Commit graph

3988 commits

Author SHA1 Message Date
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
matthewcroughan e841544d6c licenses: add ICU license 2024-05-02 15:34:02 +00:00
John Ericson c38dd73dec
Merge pull request #308032 from obsidiansystems/freebsd-no-suffix-version
treewide: freebsd13 -> freebsd
2024-05-01 10:03:12 -04:00
John Ericson 266cdd7d37 treewide: freebsd13 -> freebsd
Co-authored-by: Alyssa Ross <hi@alyssa.is>
2024-04-30 18:20:23 -04:00
Maximilian Bosch 2b4e18f3d4
nixVersions.unstable: build from master, re-init at 2.22.0.pre20240321_6fd2f42c
The idea behind that is to enable users and developers of
downstream tools such as home-manager to test Nix master for several
reasons:

* Nix is currently trying to have a `master` branch that's always
  releasable[1]. We're still on Nix 2.18 in nixpkgs due to too many
  notable regressions. Enabling people to test latest master may help on
  that end.

* This uses the most bleeding-edge Nix, but our packaging, so we can
  identify issues with our packaging early.

* From what I've seen, most people are using the packages from nixpkgs
  anyways instead of the upstream flake, this is far more convenient
  anyways.

My plan is to update this once a week. Right now we rely on the
`installCheckPhase` here, but as soon as we have proper regression
testing[2], we may want to add `nixUnstable` there as well (however with
failures being allowed probably).

[1] https://discourse.nixos.org/t/nix-release-schedule-and-roadmap/14204
[2] https://github.com/NixOS/nixpkgs/pull/304332
2024-04-28 21:59:04 +02:00
Dee Anzorge 54f771421f lib/licenses: add unicode-30 2024-04-28 11:31:24 +02:00
ramboman 3ce1079753 lib.fetchers: Add uppercase proxy environment variables
The [Nix installer](84e0c464f1/scripts/install-systemd-multi-user.sh (L38)) and the [documentation](84e0c464f1/doc/manual/src/installation/env-variables.md (L54-L56)) state that they support uppercase proxy environment variables. [lib/fetchers.nix](165090ed66/lib/fetchers.nix (L10)) only supports lowercase proxy environment variables.

Fix: [nix#10491](https://github.com/NixOS/nix/issues/10491)
2024-04-26 14:30:55 -04:00
Jared Baur 6421226aa5 lib/systems: add microblaze-embedded
Adds a new target for `pkgsCross` that can be used for building
freestanding code for microblaze targets (e.g. Xilinx PMU firmware).
2024-04-24 19:45:58 -07:00
Silvan Mosberger 24af4c04ee
Merge pull request #214021 from tweag/ifilter0
lib.lists.ifilter0: init
2024-04-22 22:18:34 +02:00
Silvan Mosberger 6861ef7707 lib.lists.ifilter0: init 2024-04-22 18:33:14 +02:00
Robert Hensing 33e02424d2 lib: Document status of deprecated.nix and move it
This is all I could find after co-maintaining lib for a long time.
I've had the fortune of basically not really noticing this file,
because it has had very few interactions until the confusion in
https://github.com/NixOS/nixpkgs/pull/304277

It seems to be a state of limbo, which would be nice to resolve
(with great care), but this is not urgent, and first we should
document its status.
2024-04-21 16:04:35 +02:00
github-actions[bot] 11b87cbe59
Merge master into staging-next 2024-04-19 12:01:13 +00:00
Rick van Schijndel e00a40a257
Merge pull request #298680 from gvolpe/lib/transposeMap
lib/attrsets: add mapCartesianProduct function
2024-04-19 08:26:09 +02:00
github-actions[bot] feedc73bee
Merge master into staging-next 2024-04-16 18:00:57 +00:00