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
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
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
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
éclairevoyant
bb4e822d1f
lib: add mdDoc back in to provide proper warning
2024-04-15 14:16:31 -04:00
Gabriel Volpe
fe2bead78b
lib/attrsets: introduce mapCartesianProduct
2024-04-15 19:16:15 +02:00
Gabriel Volpe
228621e42d
lib/attrsets: rename cartesianProductOfSets to cartesianProduct
2024-04-15 19:03:54 +02:00
stuebinm
46456a929b
lib: remove all uses of lib.mdDoc
...
this change is otherwise a no-op, as lib.mdDoc is already defined to be
the identity function.
2024-04-13 10:07:35 -07:00
Silvan Mosberger
4f1d724b82
Merge pull request #284551 from hercules-ci/types-attrTag
...
Add `types.attrTag`
2024-04-09 20:48:44 +02:00
edef
725bb4e48c
lib: add xor
...
This gets clumsily reimplemented in various places, to no useful end.
2024-04-04 19:46:58 +00:00
Robert Hensing
2e1d470569
lib.modules.evalOptionValue: Undeprecate for lib.types
...
lib.types.attrTag needs it.
2024-04-04 11:54:46 +02:00
Florian Richer
3b883d3cdf
lib/strings: Add makeIncludePath ( #296237 )
...
* Update strings.nix
* Fix typo in docs
* Update lib/strings.nix
Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com>
* Update lib/strings.nix
Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com>
* Add unit test with strings
* Move test to strings
* Add unit test with package structure
* testMakeIncludePathWithPkgs: use real pkgs
* Revert "testMakeIncludePathWithPkgs: use real pkgs"
This reverts commit fb1850c069
.
* Update lib/tests/misc.nix
Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com>
* Update lib/tests/misc.nix
Co-authored-by: Silvan Mosberger <github@infinisil.com>
---------
Co-authored-by: lolbinarycat <dogedoge61+github@gmail.com>
Co-authored-by: Silvan Mosberger <github@infinisil.com>
2024-04-02 19:01:05 +02:00
Sandro
e426a8f097
lib: export attrsets.mergeAttrsList
2024-02-26 15:49:25 +01:00
Shea Levy
ca1262a483
lib: Add optionalDrvAttr to conditionally set drv attributes.
...
This allows for adding new, conditionally set, derivation attributes
to an existing derivation without changing any output paths in the
case where the condition is not met.
2024-02-02 16:27:30 -05:00
Silvan Mosberger
cf47b9a5c0
Merge pull request #270537 from 9999years/packagesFromDirectory
...
lib.packagesFromDirectoryRecursive: init
2023-12-19 22:03:01 +01:00
Rebecca Turner
090b929b8a
lib.packagesFromDirectoryRecursive: init
...
Co-authored-by: Gabriella Gonzalez <GenuineGabriella@gmail.com>
2023-12-19 09:48:17 -08:00