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

lastFile:pkgs/file-uploader.nix
This commit is contained in:
2026-01-09 09:56:39 +07:00
parent ead7a73780
commit 7ef9cf9cae

View File

@@ -1,6 +1,7 @@
{
fetchgit,
mkDerivation,
buildNpmPackage,
pkgs,
}:
let
repoSrc = fetchgit {
@@ -10,6 +11,23 @@ let
};
src = "${repoSrc}/upload-large-file";
in
mkDerivation {
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
'';
}