mob next [ci-skip] [ci skip] [skip ci]
lastFile:pkgs/think-backend-gtcm.nix
This commit is contained in:
14
flake.nix
14
flake.nix
@@ -44,9 +44,23 @@
|
||||
./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.think = pkgs.think-gtcm;
|
||||
packages.think-be = pkgs.think-backend-gtcm;
|
||||
};
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
6
overlays/default.nix
Normal file
6
overlays/default.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ ... }:
|
||||
{
|
||||
flake.overlays = {
|
||||
packagesOverlay = import ../pkgs/overlay.nix;
|
||||
};
|
||||
}
|
||||
4
pkgs/overlay.nix
Normal file
4
pkgs/overlay.nix
Normal file
@@ -0,0 +1,4 @@
|
||||
final: prev: {
|
||||
think-gtcm = final.callPackage ./think-gtcm.nix { };
|
||||
think-backend-gtcm = final.callPackage ./think-backend-gtcm.nix { php = final.php83; };
|
||||
}
|
||||
21
pkgs/think-backend-gtcm.nix
Normal file
21
pkgs/think-backend-gtcm.nix
Normal file
@@ -0,0 +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 = "sha256-eXm1x3E9KHWojaT2RU4inMdZqQVcWdLCKlvzhOlIZrc=";
|
||||
})
|
||||
21
pkgs/think-gtcm.nix
Normal file
21
pkgs/think-gtcm.nix
Normal file
@@ -0,0 +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.greaterchiangmai.com";
|
||||
in
|
||||
php.buildComposerProject2 (finalAttrs: {
|
||||
pname = "think-gtcm";
|
||||
version = "1.0.0";
|
||||
|
||||
inherit src;
|
||||
|
||||
composerStrictValidation = false;
|
||||
vendorHash = "sha256-QV3hR3U3GwCqrCRxfkazmJwDpO1vFyMfA6YqUb4bjMI=";
|
||||
})
|
||||
@@ -1,4 +1,4 @@
|
||||
{ inputs, ... }:
|
||||
{ inputs, pkgs, ... }:
|
||||
{
|
||||
flake.legacyPackages = {
|
||||
whitehouse-router = import "${inputs.liminix}/default.nix" {
|
||||
|
||||
Reference in New Issue
Block a user