git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #41098 from mkaito/oauth2_proxy

oauth2_proxy: Handle attributes being derivations

commit5e5bdfa6ad23259d68ac6571ccd51406dfdbf5d9 authorYegor Timoshenko <yegortimoshenko@riseup.net> dateMon 18 Jun 2018, 20:47 (8 years ago) parente0e505d170223f
1 file changed+1
nixos/modules/services/security/oauth2_proxy.nix+1
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