Fix nix flake

This commit is contained in:
Greg Shuflin 2025-04-08 00:00:46 -07:00
parent 151824233b
commit a0f7ed045c

View File

@ -23,9 +23,20 @@
frontend = pkgs.stdenv.mkDerivation { frontend = pkgs.stdenv.mkDerivation {
name = "frontend"; name = "frontend";
src = ./.; src = ./.;
buildInputs = [pkgs.yarn node-modules pkgs.nodejs]; buildInputs = [
pkgs.yarn
node-modules
pkgs.nodejs
pkgs.nodePackages.typescript
];
buildPhase = '' buildPhase = ''
# Set HOME to a writable directory
export HOME=$TMPDIR
# Link the node_modules
ln -sf ${node-modules}/libexec/kucinako/node_modules node_modules ln -sf ${node-modules}/libexec/kucinako/node_modules node_modules
# Build the project
${pkgs.yarn}/bin/yarn build ${pkgs.yarn}/bin/yarn build
''; '';
installPhase = '' installPhase = ''