use generic stdenv to compile embree on alderlake

This commit is contained in:
陈浩南 2023-08-06 18:28:08 +08:00
parent 949e46453c
commit 17a61b4862

View File

@ -167,6 +167,12 @@ inputs:
{ {
hostPlatform = { system = "x86_64-linux"; gcc = { arch = system.march; tune = system.march; }; }; hostPlatform = { system = "x86_64-linux"; gcc = { arch = system.march; tune = system.march; }; };
config.qchem-config.optArch = system.march; config.qchem-config.optArch = system.march;
overlays =
let
fixes.alderlake = [(final: prev:
{ embree = prev.embree.override { stdenv = final.genericPackages.stdenv; }; })];
in
fixes.${system.march} or [];
}; };
nix.settings.system-features = [ "gccarch-${system.march}" ]; nix.settings.system-features = [ "gccarch-${system.march}" ];
boot.kernelPatches = boot.kernelPatches =