Files
infra/pkgs/file-uploader.nix
kurogeek 80e70db660 mob next [ci-skip] [ci skip] [skip ci]
lastFile:pkgs/file-uploader.nix
2026-01-09 10:31:49 +07:00

36 lines
638 B
Nix

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