mob next [ci-skip] [ci skip] [skip ci]
lastFile:pkgs/file-uploader.nix
This commit is contained in:
@@ -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
|
||||
'';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user