mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-02-21 09:27:51 +01:00
nixfmt
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
{ lib
|
||||
, php
|
||||
, writeText
|
||||
, fetchFromGitHub
|
||||
, extra_files ? { }
|
||||
{
|
||||
lib,
|
||||
php,
|
||||
writeText,
|
||||
fetchFromGitHub,
|
||||
extra_files ? { },
|
||||
|
||||
}:
|
||||
|
||||
@@ -25,10 +26,12 @@ php.buildComposerProject rec {
|
||||
# - https://simplesamlphp.org/docs/contrib_modules/metarefresh/simplesamlphp-automated_metadata.html
|
||||
# - https://idp.pvv.ntnu.no/simplesaml/saml2/idp/metadata.php
|
||||
postPatch = lib.pipe extra_files [
|
||||
(lib.mapAttrsToList (target_path: source_path: ''
|
||||
mkdir -p $(dirname "${target_path}")
|
||||
cp -r "${source_path}" "${target_path}"
|
||||
''))
|
||||
(lib.mapAttrsToList (
|
||||
target_path: source_path: ''
|
||||
mkdir -p $(dirname "${target_path}")
|
||||
cp -r "${source_path}" "${target_path}"
|
||||
''
|
||||
))
|
||||
lib.concatLines
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user