composer.lock unchanged; vendorHash moved with the php/composer bump in nixos-unstable 3ec6363.
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 = "fdb71d61c7786b1a0f3fa595d2eb68e3438a55b1";
|
|
hash = "sha256-oR1DHYO7YXHGWPEdewtPuHnIlQ+c3BuKI7B3QNMDCx4=";
|
|
};
|
|
src = "${repoSrc}/think-backend.greaterchiangmai.com";
|
|
in
|
|
php.buildComposerProject2 (finalAttrs: {
|
|
pname = "think-backend-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-9PLtZ6b83PHC6jA4Bso7H4qMg1h6HKZ3EbK4uwI4hj4=";
|
|
})
|