mob next [ci-skip] [ci skip] [skip ci]

lastFile:modules/nixos/think-gtcm.nix
This commit is contained in:
2025-11-24 17:18:59 +07:00
parent 1cd2643691
commit 52df526ac5
6 changed files with 208 additions and 27 deletions

View File

@@ -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=";
})

View File

@@ -1,6 +1,7 @@
{
fetchgit,
php,
dataDir ? "/var/lib/think-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-QV3hR3U3GwCqrCRxfkazmJwDpO1vFyMfA6YqUb4bjMI=";
})