From c02d79f2297351202a75952b0a4649783ada31a9 Mon Sep 17 00:00:00 2001 From: sveitser Date: Mon, 17 Feb 2025 12:23:21 +0100 Subject: [PATCH] don't use pkgs in overlay I guess when the overlay is applied there is a `pkgs` in scope, but not sure. Probably more idiomatic to refer to attributes of `prev` which is the package set before applying the overlay. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 6473f06085..47b0a13bba 100644 --- a/flake.nix +++ b/flake.nix @@ -71,7 +71,7 @@ # This overlays a mkShell that is configured to use mold on Linux. (final: prev: prev.lib.optionalAttrs prev.stdenv.isLinux { mkShell = prev.mkShell.override { - stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv; + stdenv = prev.stdenvAdapters.useMoldLinker prev.clangStdenv; }; }) ];