From b7b33e1374767d02b0bb39687c0fb1579e172e0a Mon Sep 17 00:00:00 2001 From: kurogeek Date: Wed, 12 Nov 2025 16:50:09 +0700 Subject: [PATCH] mob next [ci-skip] [ci skip] [skip ci] lastFile:pkgs/think-gtcm.nix --- pkgs/think-gtcm.nix | 32 +++++++++----------------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/pkgs/think-gtcm.nix b/pkgs/think-gtcm.nix index 97a4106..ef2403c 100644 --- a/pkgs/think-gtcm.nix +++ b/pkgs/think-gtcm.nix @@ -3,38 +3,24 @@ php, breakpointHook, }: -php.buildComposerProject2 (finalAttrs: rec { - pname = "think-gtcm"; - version = "1.0.0"; - src = fetchgit { +let + repoSrc = fetchgit { url = "https://git.b4l.co.th/newedge/think-greaterchiangmai"; rev = "7c17aa78436538241c09fc7d633904d3c063011e"; hash = "sha256-GDx0+PmuCXC+UPtsvsocCZQiTPcnOZEzJI17sxrVv7Q="; }; + src = "${repoSrc}/think.greaterchiangmai.com"; +in +php.buildComposerProject2 (finalAttrs: rec { + pname = "think-gtcm"; + version = "1.0.0"; - sourceRoot = "${src}/think.greaterchiangmai.com"; - - unpackPhase = '' - runHook preUnpack - - mkdir "$sourceRoot" - - ls $sourceRoot - echo "==================" - - cp -R "$src/think.greaterchiangmai.com/*" "$sourceRoot/" - - runHook postUnpack - ''; - - buildPhase = '' - exit 1 - ''; + inherit src; nativeBuildInputs = [ breakpointHook ]; composerStrictValidation = false; - vendorHash = ""; + vendorHash = "sha256-QV3hR3U3GwCqrCRxfkazmJwDpO1vFyMfA6YqUb4bjMI="; })