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

lastFile:pkgs/file-uploader.nix
This commit is contained in:
2026-01-09 10:31:49 +07:00
parent 7ef9cf9cae
commit 80e70db660
2 changed files with 9 additions and 6 deletions

View File

@@ -61,6 +61,7 @@
};
packages.think = pkgs.think-gtcm;
packages.think-be = pkgs.think-backend-gtcm;
packages.file-uploader = pkgs.file-uploader;
};
}
);

View File

@@ -7,27 +7,29 @@ let
repoSrc = fetchgit {
url = "https://git.b4l.co.th/newedge/think-greaterchiangmai";
rev = "6f8c8d7dfaf5a0c1eb2077de1d6fb35ceaf3d4ec";
hash = "";
hash = "sha256-2mCdn8xGjWZrANclctGTmxQhkNc43VzlzMTVwVIFJcM=";
};
src = "${repoSrc}/upload-large-file";
in
buildNpmPackage {
pname = "upload-large-file";
pname = "file-uploader";
version = "1.0.0";
nativeBuildInputs = with pkgs; [ nodejs_18 ];
nativeBuildInputs = with pkgs; [
nodejs_20
breakpointHook
];
inherit src;
npmDepsHash = "";
npmDepsHash = "sha256-JEp2F1CQfuV9fSYZRdRO+BiOE9dy1ReK6doJcqCuxu4=";
buildPhase = ''
npm install
npm run build
'';
installPhase = ''
mkdir -p $out
cp -r dist $out/dist
cp -r * $out
'';
}