Handle attributes being derivations
commit170223fe642bba1b36181d2120ba0095c70de6eb
authorMichishige Kaito <me@mkaito.com>
dateSat 26 May 2018, 12:05 (9 years ago)
parent66aed8f
nixos/modules/services/security/oauth2_proxy.nix+1
@@ -72,6 +72,7 @@ let
7272
7373 mapConfig = key: attr:
7474 if (!isNull attr && attr != []) then (
75+ if isDerivation attr then mapConfig key (toString attr) else
7576 if (builtins.typeOf attr) == "set" then concatStringsSep " "
7677 (mapAttrsToList (name: value: mapConfig (key + "-" + name) value) attr) else
7778 if (builtins.typeOf attr) == "list" then concatMapStringsSep " " (mapConfig key) attr else