{
nixConfig = {
extra-substituters = [
"https://sparkles.cachix.org"
"https://dlang-community.cachix.org"
"https://cache.sparkles.petar-kirov.dev"
];
extra-trusted-public-keys = [
"sparkles.cachix.org-1:CPQ+GG8UKQCNUyvCrgZj8p7P+7cYqpjmGAmUPlLwbZc="
"dlang-community.cachix.org-1:eAX1RqX4PjTDPCAp/TvcZP+DYBco2nJBackkAJ2BsDQ="
"cache.sparkles.petar-kirov.dev-1:pyBtPO/Mcyi5aJExiz7yfqnj9GLd65djkPwENpLFY00="
];
};
inputs = {
nixpkgs.url = "github:PetarKirov/nixpkgs?ref=glfw3-3.5.1-nixos-unstable-2026-10-27";
flake-parts = {
url = "github:hercules-ci/flake-parts";
inputs.nixpkgs-lib.follows = "nixpkgs";
};
git-hooks-nix = {
url = "github:cachix/git-hooks.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
};
};
systems.url = "github:nix-systems/triplet";
dlang-nix = {
url = "github:PetarKirov/dlang.nix/feat/ldc-sparkles";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-compat.follows = "flake-compat";
flake-parts.follows = "flake-parts";
git-hooks-nix.follows = "git-hooks-nix";
};
};
nix-on-droid = {
url = "github:PetarKirov/nix-on-droid/feat/android-app-id";
inputs.nixpkgs.follows = "nixpkgs";
inputs.nixpkgs-docs.follows = "nixpkgs";
};
ghostty = {
url = "github:ghostty-org/ghostty/vt-1.0.0";
inputs.nixpkgs.follows = "nixpkgs";
inputs.systems.follows = "systems";
inputs.flake-compat.follows = "flake-compat";
};
flake-compat = {
url = "github:edolstra/flake-compat";
flake = false;
};
glfw = {
url = "github:PetarKirov/glfw/wayland-cursor-shape-v1";
flake = false;
};
nixpkgs-upstream-glfw = {
url = "github:NixOS/nixpkgs/31ecbaca1bdefa45dffc409f0250bd8039ea0010";
flake = false;
};
tree-sitter-d-src = {
url = "github:PetarKirov/tree-sitter-d/feat/dub-single-file-injections";
flake = false;
};
tree-sitter-sdl-src = {
url = "github:PetarKirov/tree-sitter-sdl/v0.1.0";
flake = false;
};
roboto-src = {
url = "github:googlefonts/roboto-3-classic/v3.015";
flake = false;
};
clay-src = {
url = "github:nicbarker/clay/e6cc36941ab2af5d81107617039d6f527a1c660b";
flake = false;
};
imgui-src = {
url = "github:ocornut/imgui/bd4e3b0abccd653490d68beeb72f0750cde6d5f6";
flake = false;
};
egui-src = {
url = "github:emilk/egui/90431d979ab1faae2de6d9f736e9d33ca0d31956";
flake = false;
};
taffy-src = {
url = "github:DioxusLabs/taffy/497de49c200daee81a18ce627bec98d5340ae57a";
flake = false;
};
dmd-src = {
url = "github:PetarKirov/dmd/dmdserver-dub";
flake = false;
};
phobos-src = {
url = "github:dlang/phobos/v2.113.0-beta.1";
flake = false;
};
vtebench-src = {
url = "github:alacritty/vtebench";
flake = false;
};
termbench-src = {
url = "github:PetarKirov/termbench";
flake = false;
};
json-test-suite = {
url = "github:nst/JSONTestSuite";
flake = false;
};
dub-sdl-src = {
url = "github:dlang/dub/5efed360e1c9342453bc5dd19339c75981526d83";
flake = false;
};
snix-src = {
url = "git+https://git.snix.dev/snix/snix?rev=c27950ab360b92bbb8f2ca246efd0ed895ce1e58&shallow=1";
flake = false;
};
libpng-src = {
url = "github:pnggroup/libpng/v1.6.44";
flake = false;
};
nativejson-benchmark = {
url = "github:miloyip/nativejson-benchmark";
flake = false;
};
simdjson-src = {
url = "github:simdjson/simdjson";
flake = false;
};
harfbuzz-src = {
url = "github:harfbuzz/harfbuzz/14.6.0";
flake = false;
};
maple-font = {
url = "github:subframe7536/maple-font/v7.9";
flake = false;
};
maple-font-cn-base = {
type = "file";
url = "https://github.com/subframe7536/maple-font/releases/download/cn-base/cn-base-static.zip";
flake = false;
};
ufo-extractor-wheel = {
type = "file";
url = "https://files.pythonhosted.org/packages/cd/cf/34b74c79439ac47ee16e129b709b1fe61ef20211175ac358a252ae50dd3b/ufo_extractor-0.8.1-py2.py3-none-any.whl";
flake = false;
};
yyjson-src = {
url = "github:ibireme/yyjson/0.12.0";
flake = false;
};
expected-src = {
url = "github:tchaloupka/expected/0793e8b7dc06dd05b3fa3103e5a99bf0bfd5f638";
flake = false;
};
during-src = {
url = "github:tchaloupka/during/3cd81909a4204b94da7de9f7b9d8e707a7360e74";
flake = false;
};
wcwidth-src = {
url = "https://files.pythonhosted.org/packages/source/w/wcwidth/wcwidth-0.8.2.tar.gz";
flake = false;
};
dub-raylib-d = {
type = "file";
url = "https://code.dlang.org/packages/raylib-d/6.0.1.zip";
flake = false;
};
dub-optional = {
type = "file";
url = "https://code.dlang.org/packages/optional/1.3.1.zip";
flake = false;
};
dub-bolts = {
type = "file";
url = "https://code.dlang.org/packages/bolts/1.3.1.zip";
flake = false;
};
wired-bench-external-wikidata = {
type = "file";
url = "https://raw.githubusercontent.com/Wikidata-Toolkit/Wikidata-Toolkit/master/wdtk-dumpfiles/src/test/resources/mock-dump-for-long-testing.json";
flake = false;
};
wired-bench-external-osm = {
type = "file";
url = "https://raw.githubusercontent.com/simdjson/simdjson-data/master/jsonexamples/marine_ik.json";
flake = false;
};
wired-bench-external-cloudtrail = {
type = "file";
url = "https://raw.githubusercontent.com/simdjson/simdjson-data/master/jsonexamples/amazon_cellphones.ndjson";
flake = false;
};
wired-bench-external-elasticsearch = {
type = "file";
url = "https://raw.githubusercontent.com/elastic/elasticsearch/6d42e197b82aa1c98a1796d547e373f7029ee27a/docs/src/test/resources/accounts.json";
flake = false;
};
};
outputs =
inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [
inputs.git-hooks-nix.flakeModule
./nix/d-toolchain.nix
./nix/packages/all.nix
./nix/packages/android
./nix/packages/build-sparkles-app.nix
./nix/packages/credits.nix
./nix/packages/default.nix
./nix/packages/dmd-import-paths.nix
./nix/packages/ldc-import-paths.nix
./nix/packages/dub-builder
./nix/packages/fonts.nix
./nix/packages/font-test-corpus.nix
./nix/packages/font-unfree-corpus.nix
./nix/packages/harfbuzz.nix
./nix/packages/freebsd-vm.nix
./nix/packages/hue.nix
./nix/packages/example-catalogue.nix
./nix/packages/run-all-examples.nix
./nix/packages/manifest-graph.nix
./nix/packages/build-info.nix
./nix/packages/native-libs.nix
./nix/packages/libghostty-vt.nix
./nix/packages/static-apps.nix
./nix/packages/shader-compile.nix
./nix/packages/test-runner.nix
./nix/packages/toolchains.nix
./nix/packages/android-dev-env-probe.nix
./nix/packages/media-hw-probe.nix
./nix/packages/ui-shaders.nix
./nix/packages/skia.nix
./nix/packages/wasm-modules.nix
./nix/packages/tree-sitter-d.nix
./nix/packages/tree-sitter-sdl.nix
./nix/packages/tree-sitter-fileset.nix
./nix/packages/ts-grammars.nix
./nix/packages/nerd-font-glyphnames.nix
./nix/packages/twoslash-extract.nix
./nix/packages/uwidth-rs.nix
./nix/packages/wired-bench-data.nix
./nix/packages/json-test-suite.nix
./nix/packages/snix-castore.nix
./nix/packages/bao-outboard.nix
./nix/packages/ui-research-probes.nix
./nix/packages/sparkles-iroh-send.nix
./nix/packages/fsx.nix
./nix/packages/wired-bench-yyjson.nix
./nix/packages/wired-bench-cpp-shim.nix
./nix/packages/wired-bench-rs.nix
./nix/pin-targets.nix
./nix/checks/pre-commit.nix
./nix/checks/d-compiler.nix
./nix/shells/default.nix
./nix/shells/nix-c-api.nix
./nix/shells/text-oracles.nix
./nix/shells/android.nix
./nix/shells/win32-cross.nix
];
systems = import inputs.systems;
};
}