avoid rebuilding firefox

This commit is contained in:
2025-11-26 20:56:35 +01:00
parent 4ed3938223
commit 767e1e50be
9 changed files with 58 additions and 42 deletions

View File

@@ -21,11 +21,7 @@ lib.mkMerge [
})
{
nixpkgs.config.openglSupport = true; # why is this not set by hardware.opengl.enable ?
nixpkgs.config.cudaSupport = true;
nixpkgs.config.vdpauSupport = true;
nixpkgs.config.vaapiSupport = true;
nixpkgs.config.nvidiaSupport = true;
nixpkgs.config.cudaSupport= true;
nixpkgs.config.allowUnfreePredicate =
pkg:
@@ -39,6 +35,16 @@ lib.mkMerge [
(lib.hasInfix "cublas" pkgname)
];
# avoid expensive rebuilds
nixpkgs.config.packageOverrides = pkgs: {
firefox-unwrapped = pkgs.firefox-unwrapped.override (old: {
onnxruntime = old.onnxruntime.override {
cudaSupport = false;
ncclSupport = false;
};
});
};
}
/* lib.mkIf (lib.versionAtLeast lib.version "24.11") { */
(lib.optionalAttrs (lib.versionAtLeast lib.version "24.11") {