about summary refs log tree commit diff
path: root/lib
Commit message (Collapse)AuthorAge
* Merge pull request #295196 from tpwrules/qemu-less-libsArtturi2024-03-23
|\ | | | | lib/systems: remove more features from qemu-user
| * lib/systems: remove more features from qemu-userThomas Watson2024-03-11
| | | | | | | | | | | | alsaSupport/jackSupport: unnecessary multimedia systems tpmSupport/capstoneSupport: unlikely to come up as an exe emulator
* | treewide: remove licenses.agpl3Jussi Kuokkanen2024-03-21
| |
* | lib/license: add hpndUcjopejoe12024-03-20
| |
* | lib/license: add giftwarejopejoe12024-03-20
| |
* | lib/license: add NIST-Softwarejopejoe12024-03-20
| |
* | doc: migrate lib.trivial to use doc-comments (#297270)Johannes Kirschbauer2024-03-19
| | | | | | | | | | | | | | | | | | * doc: migrate lib.trivial to use doc-comments * Apply suggestions from code review --------- Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
* | Merge pull request #296186 from hsjobeki/doc/attrsetsDaniel Sidhion2024-03-19
|\ \ | | | | | | doc: migrate lib.attrsets to use doc-comments
| * | Apply suggestions from code reviewDaniel Sidhion2024-03-19
| | |
| * | doc: manual fixup after migrationJohannes Kirschbauer2024-03-19
| | |
| * | doc: migrate lib.attrsets to use doc-commentsJohannes Kirschbauer2024-03-15
| | |
* | | Merge pull request #293901 from philiptaron/refactor-lib/generators.nixSilvan Mosberger2024-03-18
|\ \ \ | | | | | | | | lib: use explicit name imports in `lib/generators.nix`
| * | | lib: use names from `lib` in `lib/generators.nix`, rather than `builtins` or ↵Philip Taron2024-03-16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | submodules of `lib` There's not a lot of rhyme to which names are exported from which module, as I see it, but everything is found somewhere.
| * | | lib/generators: use the explicit public interface patternPhilip Taron2024-03-14
| | | | | | | | | | | | | | | | This enables further refactoring without accidentally changing the public interface.
| * | | lib/generators: explicitly import names from `lib.trivial`Philip Taron2024-03-14
| | | | | | | | | | | | | | | | Everything else was already imported.
| * | | lib/generators: explicitly import names from `lib.attrsets`Philip Taron2024-03-14
| | | | | | | | | | | | | | | | Everything used was already imported.
| * | | lib/generators: explicitly import names from `lib.string`Philip Taron2024-03-14
| | | | | | | | | | | | | | | | A couple of these were imports from `builtins`.
| * | | lib/generators: explicitly import names from `lib`Philip Taron2024-03-14
| | | | | | | | | | | | | | | | I followed the `inherit` chains in `lib/default.nix` to arrive at these imports.
| * | | lib/generators: builtins.isFloat is in Nix 2.3Philip Taron2024-03-14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | There's a couple of aliases in play: 1. `lib.isList` is an alias for `builtins.isList`. 2. `lib.strings.concatStringsSep` is an alias for `builtins.concatStringsSep`
* | | | Merge pull request #295158 from philiptaron/remove-top-level-with-in-lib-part5Silvan Mosberger2024-03-18
|\ \ \ \ | | | | | | | | | | Avoid top-level `with` in `lib/tests/misc.nix`
| * | | | Avoid top-level `with` in lib/tests/misc.nixPhilip Taron2024-03-11
| | |_|/ | |/| |
* | | | lib.foldl': document eta expansionJohannes Kirschbauer2024-03-16
| | | |
* | | | lib.foldl': avoid unnecessary function callJohannes Kirschbauer2024-03-15
| |_|/ |/| |
* | | Merge pull request #294906 from philiptaron/remove-top-level-with-in-lib-part2Silvan Mosberger2024-03-14
|\ \ \ | | | | | | | | lib: use explicit name imports in `lib/deprecated.nix`
| * | | lib: use explicit name imports in lib/deprecated.nixPhilip Taron2024-03-10
| | | |
* | | | Merge pull request #295007 from philiptaron/remove-top-level-with-in-lib-part3Silvan Mosberger2024-03-14
|\ \ \ \ | |_|_|/ |/| | | lib: avoid top-level `with ...;` in lib/kernel.nix
| * | | Avoid top-level `with ...;` in lib/kernel.nixPhilip Taron2024-03-11
| |/ /
* | / doc: lib.lists migrate to doc-comments (#294257)Johannes Kirschbauer2024-03-13
| |/ |/| | | | | | | | | | | | | | | | | | | * doc: lib.lists migrate to doc-comments * Fix extra indentation of docs lines, remove redundant comments, add inputs docs * fix: indentation & argument references --------- Co-authored-by: DS <commits@sidhion.com>
* | Avoid top-level `with ...;` in ↵Philip Taron2024-03-11
| | | | | | | | lib/tests/modules/extendModules-168767-imports.nix
* | Avoid top-level `with ...;` in lib/tests/modules/alias-with-priority.nixPhilip Taron2024-03-11
| |
* | Avoid top-level `with ...;` in ↵Philip Taron2024-03-11
|/ | | | lib/tests/modules/alias-with-priority-can-override.nix
* doc: actually document `lib.customisation.makeScope` (#294194)Valentin Gagarin2024-03-09
| | | * doc: actually document `lib.customisation.makeScope`
* doc: lib.asserts migrate to doc-comments (#292310)Johannes Kirschbauer2024-03-07
|
* Merge branch 'master' into license-updatesJörg Thalheim2024-03-06
|\
| * Merge pull request #292945 from adisbladis/lib-tointSilvan Mosberger2024-03-06
| |\ | | | | | | lib.toInt/toIntBase10: Make more efficient by hoisting up internal strings into higher scope
| | * lib.toInt/toIntBase10: Make more efficient by hoisting up internal strings ↵adisbladis2024-03-03
| | | | | | | | | | | | into higher scope
| * | Merge pull request #292941 from adisbladis/lib-getattrfrompath-envSilvan Mosberger2024-03-06
| |\ \ | | | | | | | | lib.getAttrFromPath: Don't use errorMessage variable
| | * | lib.getAttrFromPath: Don't use errorMessage variableadisbladis2024-03-03
| | |/ | | | | | | | | | We can just pass the error message on without creating an environment.
| * | Merge pull request #292938 from adisbladis/mapattrsrecursivecond-envSilvan Mosberger2024-03-06
| |\ \ | | | | | | | | lib.mapAttrsRecursiveCond: Eliminate intermediate one intermediate variable environment
| | * | lib.mapAttrsRecursiveCond: Eliminate intermediate one intermediate variable ↵adisbladis2024-03-03
| | |/ | | | | | | | | | environment
| * | Merge pull request #292937 from adisbladis/zipattrs-envSilvan Mosberger2024-03-06
| |\ \ | | | | | | | | lib.zipAttrs: Remove needless function wrapping
| | * | lib.zipAttrs: Remove needless function wrappingadisbladis2024-03-03
| | |/ | | | | | | | | | Returning the partially applied `zipAttrsWith fn` is the same as `sets: zipAttrsWith fn sets`.
| * | Merge pull request #292934 from adisbladis/lib-choosedevoutputSilvan Mosberger2024-03-06
| |\ \ | | | | | | | | lib.chooseDevOutputs: Remove needless function wrapping
| | * | lib.chooseDevOutputs: Remove needless function wrappingadisbladis2024-03-03
| | |/ | | | | | | | | | Returning the partially applied `map getDev` is the same as `drvs: map getDev drvs`.
| * | Merge pull request #292209 from hercules-ci/lazyDerivation-multi-outputSilvan Mosberger2024-03-06
| |\ \ | | | | | | | | lib.lazyDerivation: Support multi-output derivations
| | * | lib.lazyDerivation: Support multi-output derivationsRobert Hensing2024-02-29
| | | |
| * | | doc: add details on `mapAttrsRecursive[Cond]` (#293509)Valentin Gagarin2024-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * doc: add details on `mapAttrsRecursive[Cond]` from first reading it wasn't clear that `f` also takes the current attribute path. also the value f receives is tricky due to how the condition is evaluated. Co-authored-by: Daniel Sidhion <DanielSidhion@users.noreply.github.com>
| * | | Merge pull request #177977 from thefloweringash/call-packages-with-function-argsArtturi2024-03-03
| |\ \ \ | | | | | | | | | | lib/customization: propagate function arguments in callPackagesWith
| | * | | lib/customization: propagate function arguments in callPackagesWithAndrew Childs2024-02-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | makeOverridable is very careful to ensure the arguments to the overridden function are the same as the input function. As a result, the arguments of hello.override are exactly the same as the original arguments of the hello function that produced the derivation. However, callPackagesWith calls makeOverridable with a lambda that does not propagate the arguments. The override function for a package instantiated with callPackagesWith will not have the original arguments. For example: nix-repl> lib.functionArgs hello.override { callPackage = false; fetchurl = false; hello = false; lib = false; nixos = false; stdenv = false; testers = false; } nix-repl> lib.functionArgs openssl.override { } By copying the arguments onto the inner lambda before passing it to makeOverridable, we can make callPackage and callPackages behave the same. nix-repl> lib.functionArgs openssl.override { buildPackages = false; coreutils = false; cryptodev = false; enableSSL2 = true; enableSSL3 = true; fetchurl = false; lib = false; perl = false; removeReferencesTo = false; static = true; stdenv = false; withCryptodev = true; withPerl = true; }
| * | | | Merge pull request #288812 from hercules-ci/lib-flake-versionRobert Hensing2024-03-03
| |\ \ \ \ | | |_|_|/ | |/| | | `lib/` flake: fix `lib.version`