From a0f7ed045cdec25d3619764c355dc6611b1ea1c4 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 8 Apr 2025 00:00:46 -0700 Subject: [PATCH] Fix nix flake --- flake.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index a0ef188..fd0fe05 100644 --- a/flake.nix +++ b/flake.nix @@ -23,9 +23,20 @@ frontend = pkgs.stdenv.mkDerivation { name = "frontend"; src = ./.; - buildInputs = [pkgs.yarn node-modules pkgs.nodejs]; + buildInputs = [ + pkgs.yarn + node-modules + pkgs.nodejs + pkgs.nodePackages.typescript + ]; buildPhase = '' + # Set HOME to a writable directory + export HOME=$TMPDIR + + # Link the node_modules ln -sf ${node-modules}/libexec/kucinako/node_modules node_modules + + # Build the project ${pkgs.yarn}/bin/yarn build ''; installPhase = ''