summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 3 insertions, 5 deletions
diff --git a/flake.nix b/flake.nix

index 4c5e915..bdcf963 100644 --- a/flake.nix +++ b/flake.nix
@@ -39,6 +39,7 @@ nativeBuildInputs = with pkgs; [ python3 ]; npmDepsHash = hashesFile.npmDepsHash; makeCacheWritable = true; + dontNpmBuild = true; postPatch = '' substituteInPlace package.json --replace 'npx patch-package' '${pkgs.nodePackages.patch-package}/bin/patch-package' ''; @@ -50,8 +51,8 @@ find node_modules -maxdepth 1 -type d -empty -delete mkdir -p $out - cp -r assets dist node_modules package.json $out/ - makeWrapper ${pkgs.nodejs}/bin/node $out/bin/start --prefix NODE_PATH : $out/node_modules --add-flags $out/$i + cp -r src node_modules package.json $out/ + makeWrapper ${pkgs.nodejs}/bin/node $out/bin/start --prefix NODE_PATH : $out/node_modules --add-flags $out set +x runHook postInstall @@ -78,9 +79,6 @@ devShell = pkgs.mkShell { buildInputs = with pkgs; [ nodejs - nodePackages.typescript - nodePackages.ts-node - nodePackages.patch-package nodePackages.prettier ]; };