mob next [ci-skip] [ci skip] [skip ci]
lastFile:pkgs/think-gtcm.nix
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -44,9 +44,22 @@
|
|||||||
./machines
|
./machines
|
||||||
./routers
|
./routers
|
||||||
./inventories
|
./inventories
|
||||||
|
./overlays
|
||||||
./modules/clan/flake-module.nix
|
./modules/clan/flake-module.nix
|
||||||
./modules/nixos/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;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
flake.overlays = {
|
flake.overlays = {
|
||||||
packagesOverlay = ../pkgs/overlay.nix;
|
packagesOverlay = import ../pkgs/overlay.nix;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,17 +1,31 @@
|
|||||||
{
|
{
|
||||||
fetchurl,
|
fetchurl,
|
||||||
|
fetchgit,
|
||||||
php,
|
php,
|
||||||
|
breakpointHook,
|
||||||
}:
|
}:
|
||||||
php.buildComposerProject2 (finalAttrs: rec {
|
php.buildComposerProject2 (finalAttrs: rec {
|
||||||
pname = "think-gtcm";
|
pname = "think-gtcm";
|
||||||
version = "1.0.0";
|
version = "1.0.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchgit {
|
||||||
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
|
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;
|
composerStrictValidation = false;
|
||||||
vendorHash = "";
|
vendorHash = "";
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, pkgs, ... }:
|
||||||
{
|
{
|
||||||
flake.legacyPackages = {
|
flake.legacyPackages = {
|
||||||
whitehouse-router = import "${inputs.liminix}/default.nix" {
|
whitehouse-router = import "${inputs.liminix}/default.nix" {
|
||||||
|
|||||||
Reference in New Issue
Block a user