Only use mold linker on linux

This commit is contained in:
griffi-gh 2024-09-11 12:45:33 +02:00
parent 0433653ac0
commit 5ebe166002

View file

@ -21,7 +21,10 @@
... ...
}: yafas.allSystems nixpkgs ({ pkgs, system }: { }: yafas.allSystems nixpkgs ({ pkgs, system }: {
devShells.default = pkgs.mkShell.override { devShells.default = pkgs.mkShell.override {
stdenv = pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv; stdenv = if pkgs.stdenv.isLinux then
pkgs.stdenvAdapters.useMoldLinker pkgs.clangStdenv
else
pkgs.clangStdenv;
} rec { } rec {
packages = with pkgs; [ packages = with pkgs; [
(fenix.packages.${system}.complete.withComponents [ (fenix.packages.${system}.complete.withComponents [