mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-10-31 19:08:03 +03:00
uhh2
This commit is contained in:
1 file changed
+9
-14
@@ -10,26 +10,21 @@
|
|||||||
systems = ["x86_64-linux"];
|
systems = ["x86_64-linux"];
|
||||||
|
|
||||||
forAllSystems = f: nixpkgs.lib.genAttrs systems f;
|
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 {
|
in {
|
||||||
packages = forAllSystems (system:
|
packages = forAllSystems (system:
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
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 {
|
in {
|
||||||
mesa-custom = buildCustomMesa pkgs;
|
mesa-custom = buildCustomMesa pkgs;
|
||||||
mesa-custom-32 = if system == "x86_64-linux" then
|
mesa-custom-32 = buildCustomMesa pkgs.pkgsi686Linux;
|
||||||
buildCustomMesa pkgs.pkgsi686Linux
|
|
||||||
else null;
|
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user