Files
infra/pkgs/think-gtcm.nix
T
kurogeek ee3059a8d7 think-gtcm, think-backend-gtcm: bump to c274e6d (1.1.5)
composer.lock unchanged; vendorHash moves anyway because the vendor FOD
embeds the root package version (vendor/composer/installed.*).
2026-10-27 02:04:04 +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 = "c274e6dcd9c60699d19058d97f3212afc99a4dd2";
hash = "sha256-jZvVTQXqf6WcuU3Hpq3MxWKo0NJrsN+bvQ4DU/I/DIU=";
};
src = "${repoSrc}/think.greaterchiangmai.com";
in
php.buildComposerProject2 (finalAttrs: {
pname = "think-gtcm";
version = "1.1.5";
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-evrf8S2BgLH99IV9dZkcPjjX+NNN16GWRDJe4E7L8BI=";
})