2024-03-23 21:03:21 +01:00
|
|
|
{ php }:
|
|
|
|
|
2024-03-24 08:20:54 +01:00
|
|
|
php.buildComposerProject rec {
|
2024-03-23 21:03:21 +01:00
|
|
|
src = ./..;
|
|
|
|
pname = "pvv-nettsiden";
|
|
|
|
version = "0.0.1";
|
|
|
|
vendorHash = "sha256-DSn0ifj7Hjjia1SF/1wfziD/IdsiOES8XNDVz3F/cTI=";
|
|
|
|
|
2024-03-24 08:20:54 +01:00
|
|
|
postInstall = ''
|
2024-03-24 08:20:54 +01:00
|
|
|
install -Dm444 dist/simplesamlphp-config.php $out/${passthru.simplesamlphpPath}/config/config.php
|
|
|
|
install -Dm444 dist/simplesamlphp-authsources.php $out/${passthru.simplesamlphpPath}/config/authsources.php
|
|
|
|
install -Dm444 dist/simplesamlphp-idp.php $out/${passthru.simplesamlphpPath}/metadata/saml20-idp-remote.php
|
2024-03-23 21:03:21 +01:00
|
|
|
|
2024-03-24 08:20:54 +01:00
|
|
|
install -Dm444 dist/config.source-env.php $out/share/php/pvv-nettsiden/config.php
|
2024-03-23 21:03:21 +01:00
|
|
|
'';
|
|
|
|
}
|