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.
Python amdapple-siliconcudadeepseekexl3exllamav3glminferencellmllm-inferencelocal-llmnvidiaopenai-apiquantizationqwenrocmstrix-halo
Add non-flake entry points and follow shared inputs onto one nixpkgs
Tristin Stagg31a8b3841f99
diff --git a/default.nix b/default.nixnew file mode 100644index 0000000..a6d48e0--- /dev/null+++ b/default.nix@@ -0,0 +1,29 @@+# 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 // systemPackagesdiff --git a/flake.lock b/flake.lockindex 4f341c3..b5fd1a5 100644--- a/flake.lock+++ b/flake.lock@@ -18,7 +18,9 @@},"flake-parts": {"inputs": {- "nixpkgs-lib": "nixpkgs-lib"+ "nixpkgs-lib": [+ "nixpkgs"+ ]},"locked": {"lastModified": 1790898470,@@ -36,7 +38,9 @@},"git-hooks-nix": {"inputs": {- "flake-compat": "flake-compat",+ "flake-compat": [+ "flake-compat"+ ],"nixpkgs": ["nixpkgs"]@@ -71,21 +75,6 @@"type": "github"}},- "nixpkgs-lib": {- "locked": {- "lastModified": 1790477367,- "narHash": "sha256-oujbxmVKDhci2E4EM3KyAbRUgp5/IsCoiA/LfEF7OOk=",- "owner": "nix-community",- "repo": "nixpkgs.lib",- "rev": "f7cd230690d9fc982d06129f9189b101fddcfa3b",- "type": "github"- },- "original": {- "owner": "nix-community",- "repo": "nixpkgs.lib",- "type": "github"- }- },"pyproject-build-systems": {"inputs": {"nixpkgs": [@@ -134,6 +123,7 @@},"root": {"inputs": {+ "flake-compat": "flake-compat","flake-parts": "flake-parts","git-hooks-nix": "git-hooks-nix","nixpkgs": "nixpkgs",diff --git a/flake.nix b/flake.nixindex ad9c1f6..bb22c6f 100644--- a/flake.nix+++ b/flake.nix@@ -4,11 +4,25 @@inputs = {nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";- flake-parts.url = "github:hercules-ci/flake-parts";+ flake-parts = {+ url = "github:hercules-ci/flake-parts";+ # One nixpkgs, not two: flake-parts' own nixpkgs-lib otherwise rides its+ # own pin and the module-system lib can disagree with the packages below.+ inputs.nixpkgs-lib.follows = "nixpkgs";+ };++ # Entry points for non-flake users (default.nix / shell.nix). flake = false+ # keeps it a plain source input; git-hooks.nix follows this node so the+ # lock carries exactly one flake-compat.+ flake-compat = {+ url = "github:NixOS/flake-compat";+ flake = false;+ };git-hooks-nix = {url = "github:cachix/git-hooks.nix";inputs.nixpkgs.follows = "nixpkgs";+ inputs.flake-compat.follows = "flake-compat";};pyproject-nix = {diff --git a/shell.nix b/shell.nixnew file mode 100644index 0000000..e982981--- /dev/null+++ b/shell.nix@@ -0,0 +1,18 @@+# `nix-shell .` -> the flake's dev shell for this system.+#+# Same lock-derived flake-compat pin as default.nix. flake-compat returns the+# flake outputs, so the shell is addressed explicitly here rather than relying+# on a shim alias: exactly one definition of the dev shell lives in flake.nix.+(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 = ./.; }).shellNix.devShells.${builtins.currentSystem}.default