]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
nix : add nix-nodejs facilities to build Web UI (#23846)
authorChristian Hoener zu Siederdissen <redacted>
Mon, 1 Jun 2026 18:01:26 +0000 (20:01 +0200)
committerGitHub <redacted>
Mon, 1 Jun 2026 18:01:26 +0000 (14:01 -0400)
commit5aa3a64596a1dc67a5aeb55dbd3d743f4d84126c
tree07d46af55512daec880fdef9b6f918db371e3e09
parent27d9ed839713e31c7a0ba45e342109a04549834f
nix : add nix-nodejs facilities to build Web UI (#23846)

* nix: add nix-nodejs facilities to build Web UI

Build the Web UI locally using standard Nix systems for building NodeJS
packages.

- Create derivation for the web UI
- npm dependencies are imported via buildNodeModules. Does not require
  setting any shasum.
- Copy build artifacts to the correct folders.
- Prevents having to download from huggingface.co

Fixes #23067

* nix: simplify webui derivation using LLAMA_UI_OUT_DIR

- Move npm build to installPhase with LLAMA_UI_OUT_DIR=$out to write
  output directly to the Nix store
- Copy built assets to tools/ui/dist (source tree) instead of
  build/tools/ui/dist so CMake's copy_src_dist() finds them
.devops/nix/package.nix