From 1857ad0ba716f392698faac4dc14bed55a594be9 Mon Sep 17 00:00:00 2001 From: Luke Curley Date: Fri, 27 Nov 2026 05:21:00 -0800 Subject: [PATCH] chore(nix): follow quest's nixpkgs so dev shells share one C compiler mbx keys build scripts, proc-macros, and every crate built on them by the C compiler's store path, so repositories whose nixpkgs pins give different compilers share none of them. Taking nixpkgs from quest, whose release every repository locks, gives every dev shell the same one. Co-Authored-By: Claude Opus 5.5 --- flake.lock | 15 ++++++++------- flake.nix | 5 +++-- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/flake.lock b/flake.lock index 4bdeaea..991b8af 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1795217999, - "narHash": "sha256-Z5mAFcY8XTAaWe+RwTchz4Fx1gwaeQ2WD8A8bKX7njY=", + "lastModified": 1794644783, + "narHash": "sha256-3GnIGIy15bMduoS9RnWqKTmsJLWThla42UFtm0S7+us=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "680275f0bb6afce84fbac3e75fc47c5f2272400b", + "rev": "5d2b81a7a3be3e2f832879028e4d60abbf58e9a0", "type": "github" }, "original": { @@ -55,9 +55,7 @@ "flake-utils": [ "flake-utils" ], - "nixpkgs": [ - "nixpkgs" - ], + "nixpkgs": "nixpkgs", "nixpkgs-bun": "nixpkgs-bun", "quest-pinned": "quest-pinned", "token-max": "token-max" @@ -95,7 +93,10 @@ "root": { "inputs": { "flake-utils": "flake-utils", - "nixpkgs": "nixpkgs", + "nixpkgs": [ + "quest", + "nixpkgs" + ], "quest": "quest" } }, diff --git a/flake.nix b/flake.nix index 47b21e1..a2032e5 100644 --- a/flake.nix +++ b/flake.nix @@ -2,14 +2,15 @@ description = "moq.dev - the blog, moq.pub, and moq.watch"; inputs = { - nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; + # quest's nixpkgs, so every repository's dev shell gets the same C compiler and mbx + # shares build scripts, proc-macros, and the crates built on them across repositories. + nixpkgs.follows = "quest/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; # The quest CLI, which also serves the quest guide and skills the stubs in # .claude/skills call. Bump the rev to upgrade them. quest = { url = "github:kixel-ai/quest"; - inputs.nixpkgs.follows = "nixpkgs"; inputs.flake-utils.follows = "flake-utils"; }; };