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

lastFile:flake.nix
This commit is contained in:
2025-11-12 16:53:23 +07:00
parent b7b33e1374
commit 0dbc7d7164
3 changed files with 24 additions and 8 deletions

View File

@@ -58,7 +58,8 @@
];
config = { };
};
packages.default = pkgs.think-gtcm;
packages.think = pkgs.think-gtcm;
packages.think-be = pkgs.think-backend-gtcm;
};
}
);

View File

@@ -1 +1,21 @@
{ }
{
fetchgit,
php,
}:
let
repoSrc = fetchgit {
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
rev = "7c17aa78436538241c09fc7d633904d3c063011e";
hash = "sha256-GDx0+PmuCXC+UPtsvsocCZQiTPcnOZEzJI17sxrVv7Q=";
};
src = "${repoSrc}/think-backend.greaterchiangmai.com";
in
php.buildComposerProject2 (finalAttrs: {
pname = "think-backend-gtcm";
version = "1.0.0";
inherit src;
composerStrictValidation = false;
vendorHash = "";
})

View File

@@ -1,9 +1,7 @@
{
fetchgit,
php,
breakpointHook,
}:
let
repoSrc = fetchgit {
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
@@ -12,15 +10,12 @@ let
};
src = "${repoSrc}/think.greaterchiangmai.com";
in
php.buildComposerProject2 (finalAttrs: rec {
php.buildComposerProject2 (finalAttrs: {
pname = "think-gtcm";
version = "1.0.0";
inherit src;
nativeBuildInputs = [ breakpointHook ];
composerStrictValidation = false;
vendorHash = "sha256-QV3hR3U3GwCqrCRxfkazmJwDpO1vFyMfA6YqUb4bjMI=";
})