This commit is contained in:
elwrcl committed 2026-06-05 21:44:11 +03:00
1 parent 9e75b7c917
commit 37c13b4907
1 file changed
+9 -14
+9 -14
View File
@@ -10,26 +10,21 @@
systems = ["x86_64-linux"];
forAllSystems = f: nixpkgs.lib.genAttrs systems f;
buildCustomMesa = pkgs: pkgs.mesa.overrideAttrs (old: {
patches = (old.patches or []) ++ [
./hd4000-custom.patch
];
mesonFlags = (old.mesonFlags or []) ++ [ "-Dgallium-rusticl=true" ];
});
in {
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; };
buildCustomMesa = pkgs: pkgs.mesa.overrideAttrs (old: {
patches = (old.patches or []) ++ [
(pkgs.fetchpatch {
url = "https://raw.githubusercontent.com/elwrcl/intel-hard-graphics/main/hd4000-custom.patch";
hash = ""; # İlk build'de hash al
})
];
mesonFlags = (old.mesonFlags or []) ++ [ "-Dgallium-rusticl=true" ];
});
in {
mesa-custom = buildCustomMesa pkgs;
mesa-custom-32 = if system == "x86_64-linux" then
buildCustomMesa pkgs.pkgsi686Linux
else null;
mesa-custom-32 = buildCustomMesa pkgs.pkgsi686Linux;
}
);
};