nettsiden/nix/package.nix

19 lines
721 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";
2024-04-06 17:32:35 +02:00
vendorHash = "sha256-sWC5E60toa95re2NugvHVPT+vKYXc1I6Z3rSqXxTUu0=";
2024-03-24 08:20:54 +01:00
passthru.simplesamlphpPath = "share/php/pvv-nettsiden/vendor/simplesamlphp/simplesamlphp";
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
'';
}