Further flake fixes

This commit is contained in:
Greg Shuflin 2025-04-08 00:03:41 -07:00
parent a0f7ed045c
commit 91746f1520

View File

@ -24,20 +24,23 @@
name = "frontend"; name = "frontend";
src = ./.; src = ./.;
buildInputs = [ buildInputs = [
pkgs.yarn pkgs.yarn
node-modules node-modules
pkgs.nodejs pkgs.nodejs
pkgs.nodePackages.typescript pkgs.nodePackages.typescript
]; ];
buildPhase = '' buildPhase = ''
# Set HOME to a writable directory # Set HOME to a writable directory
export HOME=$TMPDIR export HOME=$TMPDIR
# Link the node_modules # Link the node_modules
ln -sf ${node-modules}/libexec/kucinako/node_modules 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 # Build the project
${pkgs.yarn}/bin/yarn build yarn build
''; '';
installPhase = '' installPhase = ''
mkdir -p $out mkdir -p $out