mirror of
https://github.com/storytold/lightcraft.git
synced 2026-10-14 19:27:01 -04:00
Nix: mark the package community-maintained in the agent guide; craft-fonts holds CJK fonts, not only Japanese
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c58128c36b
commit
e2a941887e
4 files changed
+9
-9
No files matched your search
@@ -121,5 +121,5 @@ of it. Full standard: `../craftrules/standards/never-crash.md`
|
||||
→ `ui-egui`, `mcp` (L5) → apps `lightcraft` (desktop), `lightcraft-cli` (render/commands/MCP). `scenes` generates demo
|
||||
photos. `xtask` = tooling (`ci`, `layers`, `assets`, `parity`, `wasm`, `corpus`, `stats`). `flake.nix` +
|
||||
`nix/package.nix` = the Nix package (`nix build` builds both binaries with the craft-fonts input, installs the
|
||||
desktop file/icons/AppStream metadata and runs `cargo test --workspace`; `nix develop` = dev shell). Keep it building
|
||||
when the workspace layout, `Cargo.lock`, the packaging files or the fonts change; see README → Quick start.
|
||||
desktop file/icons/AppStream metadata and runs `cargo test --workspace`; `nix develop` = dev shell). Community-maintained and not
|
||||
in CI: it may lag behind the workspace; see README → Quick start.
|
||||
@@ -121,5 +121,5 @@ of it. Full standard: `../craftrules/standards/never-crash.md`
|
||||
→ `ui-egui`, `mcp` (L5) → apps `lightcraft` (desktop), `lightcraft-cli` (render/commands/MCP). `scenes` generates demo
|
||||
photos. `xtask` = tooling (`ci`, `layers`, `assets`, `parity`, `wasm`, `corpus`, `stats`). `flake.nix` +
|
||||
`nix/package.nix` = the Nix package (`nix build` builds both binaries with the craft-fonts input, installs the
|
||||
desktop file/icons/AppStream metadata and runs `cargo test --workspace`; `nix develop` = dev shell). Keep it building
|
||||
when the workspace layout, `Cargo.lock`, the packaging files or the fonts change; see README → Quick start.
|
||||
desktop file/icons/AppStream metadata and runs `cargo test --workspace`; `nix develop` = dev shell). Community-maintained and not
|
||||
in CI: it may lag behind the workspace; see README → Quick start.
|
||||
@@ -6,7 +6,7 @@
|
||||
# release channel can retarget it: `inputs.lightcraft.inputs.nixpkgs.follows = "nixpkgs";`
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
|
||||
# Optional build input of the repository: the Japanese fonts (BIZ UDPGothic, BIZ UDMincho,
|
||||
# Optional build input of the repository: the CJK fonts (BIZ UDPGothic, BIZ UDMincho, Noto Sans CJK SC,
|
||||
# Shippori Mincho) that `crates/engine/build.rs` embeds when `CRAFT_FONTS_DIR` is set. Official
|
||||
# releases always build with them; without them everything works but Japanese text has no
|
||||
# glyphs. Pinned to the revision the release workflow uses — bump deliberately
|
||||
@@ -91,7 +91,7 @@
|
||||
RUST_BACKTRACE = "1";
|
||||
}
|
||||
// lib.optionalAttrs (craft-fonts != null) {
|
||||
# Japanese glyphs in `cargo run` too; build.rs reads this as CRAFT_FONTS_DIR.
|
||||
# CJK glyphs in `cargo run` too; build.rs reads this as CRAFT_FONTS_DIR.
|
||||
CRAFT_FONTS_DIR = toString craft-fonts;
|
||||
}
|
||||
);
|
||||
|
||||
+3
-3
@@ -6,8 +6,8 @@
|
||||
# Kept in step with the release workflow (.github/workflows/release.yml) and packaging/env.sh:
|
||||
# * `Cargo.lock` drives the dependencies (`cargoLock`), so there is no vendorHash to bump — only
|
||||
# crates.io, no git sources;
|
||||
# * `CRAFT_FONTS_DIR` embeds the Japanese fonts from storytold/craft-fonts (the `craft-fonts`
|
||||
# flake input); without it everything builds and runs, but Japanese text has no glyphs;
|
||||
# * `CRAFT_FONTS_DIR` embeds the CJK fonts from storytold/craft-fonts (the `craft-fonts`
|
||||
# flake input); without it everything builds and runs, but Japanese and Chinese text have no glyphs;
|
||||
# * the desktop file, hicolor icons and AppStream metadata are the same files the .deb/.rpm ship
|
||||
# (packaging/linux/), so `apt` and NixOS users see one identical LightCraft;
|
||||
# * `doCheck` runs `cargo test --workspace`, what `cargo xtask ci` runs. `nix build` runs it too;
|
||||
@@ -38,7 +38,7 @@
|
||||
# Adds the driver search path (/run/opengl-driver/lib) to the binaries' RPATH so wgpu finds the
|
||||
# installed Vulkan driver on NixOS. Optional: harmless on nixpkgs without it.
|
||||
autoAddDriverRunpath ? null,
|
||||
# storytold/craft-fonts checkout (flake input). `null` builds without Japanese glyphs.
|
||||
# storytold/craft-fonts checkout (flake input). `null` builds without CJK glyphs.
|
||||
craft-fonts ? null,
|
||||
# Release date for the AppStream metadata (YYYY-MM-DD); the flake derives it from its own commit.
|
||||
buildDate ? "1970-01-01",
|
||||
|
||||
Reference in new issue
Block a user