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";
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