1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/lib
Naïm Favier 9c2266c031
lib.types.package: only call toDerivation when necessary
The current logic assumes that everything that isn't a derivation is a
store path, but it can also be something that's *coercible* to a store
path, like a flake input.

Unnecessary uses of `lib.toDerivation` result in errors in pure evaluation
mode when `builtins.storePath` is disabled.

Also document what a `package` is.
2022-03-11 11:26:34 +01:00
..
systems lib/systems: Fix uclibc float-abi being flipped 2022-03-07 17:05:51 +00:00
tests lib.modules: Use types.optionType for _module.freeformType 2022-03-01 19:31:02 +01:00
asserts.nix lib/asserts: use throw to display message for assertMsg 2022-01-19 00:50:06 +01:00
attrsets.nix fix: typo in lib/attrsets.nix 2022-02-10 01:16:20 +02:00
cli.nix
customisation.nix lib: make extendDerivation lighter on eval 2021-10-15 16:39:10 +02:00
debug.nix
default.nix Merge pull request #157301 from pennae/lib-add-mkPackageOption 2022-02-28 20:37:59 +01:00
deprecated.nix
fetchers.nix
filesystem.nix
fixed-points.nix
flake.nix
generators.nix
kernel.nix
licenses.nix Merge pull request #155707 from 06kellyjac/feh 2022-02-16 13:31:43 +01:00
lists.nix lib/lists: mutuallyExclusive function optimization 2021-11-01 16:29:01 -04:00
meta.nix lib/meta: fix typo in platformMatch comment 2022-01-24 12:54:22 -03:00
minver.nix
modules.nix lib.modules: Use types.optionType for _module.freeformType 2022-03-01 19:31:02 +01:00
options.nix Merge pull request #156503 from hercules-ci/nixos-add-system.build-options 2022-01-25 14:13:24 +01:00
sources.nix lib.sources: Improve docs 2022-01-30 02:04:51 +01:00
strings-with-deps.nix
strings.nix lib: fix escapeXML example in documentation 2021-11-02 22:43:25 +01:00
trivial.nix lib.trivial: Change comment type before concat function 2022-01-30 02:02:09 +01:00
types.nix lib.types.package: only call toDerivation when necessary 2022-03-11 11:26:34 +01:00
versions.nix
zip-int-bits.nix