Skip to content

Kyojin: open-source engine that runs 100 GB-class open models (GLM-5.3, Qwen3.8, DeepSeek V4.1) on one desktop machine. AMD Strix Halo, NVIDIA RTX and Apple Mac. OpenAI API, built on ExLlamaV3.

1.1 KB
Raw Blame
# Non-flake entry point, derived from flake.lock so it never needs a manual
# rev or hash. `nix-build -A kyojin .` and `nix-build .` both work here.
#
# flake-compat is pinned in flake.lock (flake = false), so this file and
# shell.nix stay in step with the flake without duplicating a revision.
#
# The flake nests its packages under `packages.<system>`, which is a detail a
# `nix-build` user should not have to know: the packages of this system are
# flattened to the top level here, so `nix-build -A kyojin .` selects the same
# derivation as `.#packages.<system>.kyojin`. Only the flake-compat view is
# flattened; the flake's own outputs are untouched.
let
  flake =
    (import (
      let
        lock = builtins.fromJSON (builtins.readFile ./flake.lock);
        inherit (lock.nodes.${lock.nodes.root.inputs.flake-compat}.locked)
          narHash
          rev
          ;
      in
      fetchTarball {
        url = "https://github.com/NixOS/flake-compat/archive/${rev}.tar.gz";
        sha256 = narHash;
      }
    ) { src = ./.; }).defaultNix;
  systemPackages = flake.packages.${builtins.currentSystem} or { };
in
flake // systemPackages