rebase package
This commit is contained in:
parent
aafda754a4
commit
1b4eb641e6
|
@ -1,9 +1,9 @@
|
||||||
{ php
|
{ lib
|
||||||
|
, php
|
||||||
, writeText
|
, writeText
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, configFile ? "config/config.php.dist"
|
, extra_files ? { }
|
||||||
, authsourcesFile ? "config/authsources.php.dist"
|
|
||||||
, saml20-idp-remoteFile ? writeText "saml20-idp-remote.php" "<?php ?>"
|
|
||||||
}:
|
}:
|
||||||
|
|
||||||
php.buildComposerProject rec {
|
php.buildComposerProject rec {
|
||||||
|
@ -24,11 +24,10 @@ php.buildComposerProject rec {
|
||||||
# TODO: metadata could be fetched automagically with these:
|
# TODO: metadata could be fetched automagically with these:
|
||||||
# - https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html
|
# - https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html
|
||||||
# - https://idp.pvv.ntnu.no/simplesaml/saml2/idp/metadata.php
|
# - https://idp.pvv.ntnu.no/simplesaml/saml2/idp/metadata.php
|
||||||
postPatch = ''
|
postPatch = lib.pipe extra_files [
|
||||||
install -Dm444 "${configFile}" "config/config.php"
|
(lib.mapAttrsToList (target_path: source_path: ''install -Dm444 "${source_path}" "${target_path}"''))
|
||||||
install -Dm444 "${authsourcesFile}" "config/authsources.php"
|
(lib.concatStringsSep "\n")
|
||||||
install -Dm444 "${saml20-idp-remoteFile}" "metadata/saml20-idp-remote.php"
|
];
|
||||||
'';
|
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
ln -sr $out/share/php/simplesamlphp/vendor/simplesamlphp/simplesamlphp-assets-base $out/share/php/simplesamlphp/public/assets/base
|
ln -sr $out/share/php/simplesamlphp/vendor/simplesamlphp/simplesamlphp-assets-base $out/share/php/simplesamlphp/public/assets/base
|
||||||
|
|
Loading…
Reference in New Issue