nettsiden/nix/package.nix

17 lines
627 B
Nix
Raw Normal View History

{ php }:
2024-03-24 08:20:54 +01:00
php.buildComposerProject rec {
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-24 08:20:54 +01:00
install -Dm444 dist/config.source-env.php $out/share/php/pvv-nettsiden/config.php
'';
}