Compare commits
5 Commits
12d878dde4
...
89050016d3
Author | SHA1 | Date |
---|---|---|
Felix Albrigtsen | 89050016d3 | |
Felix Albrigtsen | a205a77e47 | |
Oystein Kristoffer Tveit | 9c2f1674ee | |
Oystein Kristoffer Tveit | 08e6994ea8 | |
Felix Albrigtsen | 2e107c3753 |
|
@ -145,15 +145,17 @@ in
|
||||||
# the toplevel configuration file.
|
# the toplevel configuration file.
|
||||||
# NOTE: Nvm, don't this this was the problem after all?
|
# NOTE: Nvm, don't this this was the problem after all?
|
||||||
finalPackage = cfg.package.overrideAttrs (_: _: {
|
finalPackage = cfg.package.overrideAttrs (_: _: {
|
||||||
postInstall = cfg.package.postInstall + ''
|
postInstall = let
|
||||||
|
f = x: lib.escapeShellArg (format.lib.valueToString x);
|
||||||
|
in cfg.package.postInstall + ''
|
||||||
substituteInPlace $out/${cfg.package.passthru.simplesamlphpPath}/config/config.php \
|
substituteInPlace $out/${cfg.package.passthru.simplesamlphpPath}/config/config.php \
|
||||||
--replace '$SAML_COOKIE_SECURE' '${format.lib.valueToString cfg.settings.SAML.COOKIE_SECURE}' \
|
--replace '$SAML_COOKIE_SECURE' ${f cfg.settings.SAML.COOKIE_SECURE} \
|
||||||
--replace '$SAML_COOKIE_SALT' '${format.lib.valueToString cfg.settings.SAML.COOKIE_SALT}' \
|
--replace '$SAML_COOKIE_SALT' ${f cfg.settings.SAML.COOKIE_SALT} \
|
||||||
--replace '$SAML_ADMIN_PASSWORD' '${format.lib.valueToString cfg.settings.SAML.ADMIN_PASSWORD}' \
|
--replace '$SAML_ADMIN_PASSWORD' ${f cfg.settings.SAML.ADMIN_PASSWORD} \
|
||||||
--replace '$SAML_ADMIN_NAME' '${format.lib.valueToString cfg.settings.SAML.ADMIN_NAME}' \
|
--replace '$SAML_ADMIN_NAME' ${f cfg.settings.SAML.ADMIN_NAME} \
|
||||||
--replace '$SAML_ADMIN_EMAIL' '${format.lib.valueToString cfg.settings.SAML.ADMIN_EMAIL}' \
|
--replace '$SAML_ADMIN_EMAIL' ${f cfg.settings.SAML.ADMIN_EMAIL} \
|
||||||
--replace '$SAML_TRUSTED_DOMAINS' '${format.lib.valueToString cfg.settings.SAML.TRUSTED_DOMAINS}' \
|
--replace '$SAML_TRUSTED_DOMAINS' ${f cfg.settings.SAML.TRUSTED_DOMAINS} \
|
||||||
--replace '$CACHE_DIRECTORY' '${format.lib.valueToString cfg.settings.CACHE_DIRECTORY}'
|
--replace '$CACHE_DIRECTORY' ${f cfg.settings.CACHE_DIRECTORY}
|
||||||
'';
|
'';
|
||||||
});
|
});
|
||||||
in {
|
in {
|
||||||
|
|
Loading…
Reference in New Issue