From 91746f15204c0d2e28d9707db323b82bfa33af87 Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Tue, 8 Apr 2025 00:03:41 -0700 Subject: [PATCH] Further flake fixes --- flake.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index fd0fe05..78ff711 100644 --- a/flake.nix +++ b/flake.nix @@ -24,20 +24,23 @@ name = "frontend"; src = ./.; buildInputs = [ - pkgs.yarn - node-modules + 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 - + + # Add node_modules/.bin to PATH + export PATH=$PWD/node_modules/.bin:$PATH + # Build the project - ${pkgs.yarn}/bin/yarn build + yarn build ''; installPhase = '' mkdir -p $out