mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
lib.generators.toINI: serialize derivations to string
This is the common case when passing a derivation, we want to access the store path.
This commit is contained in:
parent
9e90a400a5
commit
f882fbcee0
@ -35,6 +35,8 @@ rec {
|
||||
("generators.mkValueStringDefault: " +
|
||||
"${t} not supported: ${toPretty {} v}");
|
||||
in if isInt v then toString v
|
||||
# convert derivations to store paths
|
||||
else if lib.isDerivation v then toString v
|
||||
# we default to not quoting strings
|
||||
else if isString v then v
|
||||
# isString returns "1", which is not a good default
|
||||
|
Loading…
Reference in New Issue
Block a user