pvv-nixos-config/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-02 21:37:08 +02:00
vendorHash = "sha256-W+8tLv6X2l13LmN4e1mvGn23MDMhANUCoH3pQBNViQc=";
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
'';
}