diff --git a/pkgs/file-uploader.nix b/pkgs/file-uploader.nix index 9e648c0..19b2efd 100644 --- a/pkgs/file-uploader.nix +++ b/pkgs/file-uploader.nix @@ -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 + ''; }