Files
infra/pkgs/file-uploader.nix
kurogeek 7ef9cf9cae mob next [ci-skip] [ci skip] [skip ci]
lastFile:pkgs/file-uploader.nix
2026-01-09 09:56:39 +07:00

34 lines
541 B
Nix

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