Handle attributes being derivations

This commit is contained in:
Michishige Kaito 2018-05-26 12:05:04 +01:00
parent 66aed8fd38
commit 170223fe64

View File

@ -72,6 +72,7 @@ let
mapConfig = key: attr:
if (!isNull attr && attr != []) then (
if isDerivation attr then mapConfig key (toString attr) else
if (builtins.typeOf attr) == "set" then concatStringsSep " "
(mapAttrsToList (name: value: mapConfig (key + "-" + name) value) attr) else
if (builtins.typeOf attr) == "list" then concatMapStringsSep " " (mapConfig key) attr else