composer.lock unchanged; vendorHash moves anyway because the vendor FOD embeds the root package version (vendor/composer/installed.*).
37 lines
890 B
Nix
37 lines
890 B
Nix
{
|
|
fetchgit,
|
|
php,
|
|
dataDir ? "/var/lib/think-backend-gtcm",
|
|
}:
|
|
let
|
|
repoSrc = fetchgit {
|
|
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
|
|
rev = "c274e6dcd9c60699d19058d97f3212afc99a4dd2";
|
|
hash = "sha256-jZvVTQXqf6WcuU3Hpq3MxWKo0NJrsN+bvQ4DU/I/DIU=";
|
|
};
|
|
src = "${repoSrc}/think-backend.greaterchiangmai.com";
|
|
in
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "think-backend-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-hcngGhj5HJmbS27uBX/7C6i9x4tEePN/AOSDs9HoHOw=";
|
|
})
|