From 18c5eedacd3e0dfecc7d97bcebd90bf3c7b92b98 Mon Sep 17 00:00:00 2001 From: Henri Bourcereau Date: Sat, 9 May 2026 13:49:26 +0200 Subject: [PATCH] fix: rustPkgs in flake.nix --- flake.nix | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 586e2fc..2bb1c53 100644 --- a/flake.nix +++ b/flake.nix @@ -8,10 +8,6 @@ outputs = { self, nixpkgs, rust-overlay }: let - rustPkgs = import nixpkgs { - inherit (final) system; - overlays = [ rust-overlay.overlays.default ]; - }; systems = [ "x86_64-linux" "i686-linux" "aarch64-linux" ]; forAllSystems = f: nixpkgs.lib.genAttrs systems (system: f system); nixpkgsFor = forAllSystems (system: @@ -22,7 +18,13 @@ ); in { - overlay = final: prev: { + overlay = final: prev: + let + # Extend final privately with rust-overlay to get rust-bin for the WASM + # toolchain without exposing rust-overlay attributes to consumers. + rustPkgs = final.extend rust-overlay.overlays.default; + in + { trictrac-front = let