koboldcpp/.devops/nix
Christian Hoener zu Siederdissen 5aa3a64596
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
2026-06-01 14:01:26 -04:00
..
apps.nix examples : remove finetune and train-text-from-scratch (#8669) 2024-07-25 10:39:04 +02:00
devshells.nix build(nix): Package gguf-py (#5664) 2024-09-02 14:21:01 +03:00
docker.nix nix: init singularity and docker images (#5056) 2024-02-22 11:44:10 -08:00
jetson-support.nix flake.nix: expose full scope in legacyPackages 2023-12-31 13:14:58 -08:00
nixpkgs-instances.nix nix: fix allowUnfreePredicate for packages with multiple licenses (#19237) 2026-02-01 22:10:48 +02:00
package-gguf-py.nix nix: fix nix develop .#python-scripts (#19218) 2026-01-31 18:01:46 +02:00
package.nix nix : add nix-nodejs facilities to build Web UI (#23846) 2026-06-01 14:01:26 -04:00
python-scripts.nix server : replace behave with pytest (#10416) 2024-11-26 16:20:18 +01:00
scope.nix nix: fix nix develop .#python-scripts (#19218) 2026-01-31 18:01:46 +02:00
sif.nix build(nix): Introduce flake.formatter for nix fmt (#5687) 2024-03-01 15:18:26 -08:00