mob next [ci-skip] [ci skip] [skip ci]
lastFile:modules/nixos/think-gtcm.nix
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{
|
||||
fetchgit,
|
||||
php,
|
||||
dataDir ? "/var/lib/think-backend-gtcm",
|
||||
}:
|
||||
let
|
||||
repoSrc = fetchgit {
|
||||
@@ -16,6 +17,16 @@ php.buildComposerProject2 (finalAttrs: {
|
||||
|
||||
inherit src;
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
mkdir -p $out
|
||||
cp -R * $out
|
||||
rm -rf $out/storage
|
||||
ln -s ${dataDir}/.env $out/.env
|
||||
ln -s ${dataDir}/storage $out/storage
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
composerStrictValidation = false;
|
||||
vendorHash = "sha256-eXm1x3E9KHWojaT2RU4inMdZqQVcWdLCKlvzhOlIZrc=";
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user