Skip to content

Commit

Permalink
don't use pkgs in overlay
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
sveitser committed Feb 17, 2025
1 parent cd65a73 commit c02d79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
})
];
Expand Down

0 comments on commit c02d79f

Please sign in to comment.