Files
infra/pkgs/think-gtcm.nix
T
kurogeek 136daea65d think-gtcm, think-backend-gtcm: bump to fdb71d6 (1.1.4)
composer.lock unchanged; vendorHash moved with the php/composer bump in
nixos-unstable 3ec6363.
2026-10-26 07:09:32 +00:00

37 lines
866 B
Nix

{
fetchgit,
php,
dataDir ? "/var/lib/think-gtcm",
}:
let
repoSrc = fetchgit {
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
rev = "fdb71d61c7786b1a0f3fa595d2eb68e3438a55b1";
hash = "sha256-oR1DHYO7YXHGWPEdewtPuHnIlQ+c3BuKI7B3QNMDCx4=";
};
src = "${repoSrc}/think.greaterchiangmai.com";
in
php.buildComposerProject2 (finalAttrs: {
pname = "think-gtcm";
version = "1.1.4";
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
ln -s ${dataDir}/public/storage $out/public/storage
ln -s ${dataDir}/public/uploads $out/public/uploads
runHook postInstall
'';
composerStrictValidation = false;
vendorHash = "sha256-1+2nyXiOr9Lonp0xZQ10ahLRI3VOrvItj+IPt8KnopQ=";
})