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

lastFile:pkgs/think-gtcm.nix
This commit is contained in:
2025-11-12 14:17:37 +07:00
parent 22c7555b5b
commit d057cdf6e6
4 changed files with 32 additions and 5 deletions

View File

@@ -44,9 +44,22 @@
./machines
./routers
./inventories
./overlays
./modules/clan/flake-module.nix
./modules/nixos/flake-module.nix
];
perSystem =
{ pkgs, system, ... }:
{
_module.args.pkgs = import inputs.nixpkgs {
inherit system;
overlays = [
inputs.self.overlays.packagesOverlay
];
config = { };
};
packages.default = pkgs.think-gtcm;
};
}
);
}

View File

@@ -1,6 +1,6 @@
{ ... }:
{
flake.overlays = {
packagesOverlay = ../pkgs/overlay.nix;
packagesOverlay = import ../pkgs/overlay.nix;
};
}

View File

@@ -1,17 +1,31 @@
{
fetchurl,
fetchgit,
php,
breakpointHook,
}:
php.buildComposerProject2 (finalAttrs: rec {
pname = "think-gtcm";
version = "1.0.0";
src = fetchurl {
src = fetchgit {
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
sha256 = "";
rev = "7c17aa78436538241c09fc7d633904d3c063011e";
hash = "sha256-GDx0+PmuCXC+UPtsvsocCZQiTPcnOZEzJI17sxrVv7Q=";
};
composerLock = "${src}/think.greaterchiangmai.com/composer.lock";
unpackPhase = ''
runHook preUnpack
mkdir "$sourceRoot"
cp -R "$src/think.greaterchiangmai.com/*" "$sourceRoot/"
runHook postUnpack
'';
nativeBuildInputs = [ breakpointHook ];
composerStrictValidation = false;
vendorHash = "";

View File

@@ -1,4 +1,4 @@
{ inputs, ... }:
{ inputs, pkgs, ... }:
{
flake.legacyPackages = {
whitehouse-router = import "${inputs.liminix}/default.nix" {