diff --git a/flake.nix b/flake.nix index 79c54f8..5c9d452 100644 --- a/flake.nix +++ b/flake.nix @@ -58,7 +58,8 @@ ]; config = { }; }; - packages.default = pkgs.think-gtcm; + packages.think = pkgs.think-gtcm; + packages.think-be = pkgs.think-backend-gtcm; }; } ); diff --git a/pkgs/think-backend-gtcm.nix b/pkgs/think-backend-gtcm.nix index ffcd441..53bed53 100644 --- a/pkgs/think-backend-gtcm.nix +++ b/pkgs/think-backend-gtcm.nix @@ -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 = ""; +}) diff --git a/pkgs/think-gtcm.nix b/pkgs/think-gtcm.nix index ef2403c..c036f6f 100644 --- a/pkgs/think-gtcm.nix +++ b/pkgs/think-gtcm.nix @@ -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="; - })