mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 10:58:03 +03:00
uhh2
This commit is contained in:
1 file changed
+9
-14
@@ -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;
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user