forked from mirrors/nixpkgs
mesa: fold override of patchelf inside whole build
Overriding it just for .drivers had the advantage of limiting rebuilds, but it seems less clean and apparently it can interact a bit surprisingly with some other overrides. /cc #94444. Also this will get removed once patchelf gets updated.
This commit is contained in:
parent
01c2ba8575
commit
9febe2f8fc
|
@ -4,6 +4,7 @@
|
|||
, llvmPackages, libffi, libomxil-bellagio, libva-minimal
|
||||
, libelf, libvdpau, python3Packages
|
||||
, libglvnd
|
||||
, patchelf, autoreconfHook, fetchFromGitHub
|
||||
, enableRadv ? true
|
||||
, galliumDrivers ? ["auto"]
|
||||
, driDrivers ? ["auto"]
|
||||
|
@ -126,6 +127,16 @@ stdenv.mkDerivation {
|
|||
depsBuildBuild = [ pkgconfig ];
|
||||
|
||||
nativeBuildInputs = [
|
||||
(patchelf.overrideAttrs (pa: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "patchelf";
|
||||
rev = "61bc10176"; # current master; what matters is merge of #225
|
||||
sha256 = "0cy77mn77w3mn64ggp20f4ygnbxfjmddhjjhfwkva53lsirg6w93";
|
||||
};
|
||||
nativeBuildInputs = pa.nativeBuildInputs or [] ++ [ autoreconfHook ];
|
||||
}))
|
||||
] ++ [
|
||||
pkgconfig meson ninja
|
||||
intltool bison flex file
|
||||
python3Packages.python python3Packages.Mako
|
||||
|
|
|
@ -14035,23 +14035,7 @@ in
|
|||
llvmPackages = llvmPackages_9;
|
||||
inherit (darwin.apple_sdk.frameworks) OpenGL;
|
||||
inherit (darwin.apple_sdk.libs) Xplugin;
|
||||
}
|
||||
# Temporary fix for .drivers that avoids causing lots of rebuilds; see #91145
|
||||
// { drivers = (mesa.overrideAttrs (a: {
|
||||
nativeBuildInputs = [
|
||||
(patchelf.overrideAttrs (pa: {
|
||||
src = fetchFromGitHub {
|
||||
owner = "NixOS";
|
||||
repo = "patchelf";
|
||||
rev = "61bc10176"; # current master; what matters is merge of #225
|
||||
sha256 = "0cy77mn77w3mn64ggp20f4ygnbxfjmddhjjhfwkva53lsirg6w93";
|
||||
};
|
||||
nativeBuildInputs = pa.nativeBuildInputs or [] ++ [ autoreconfHook ];
|
||||
}))
|
||||
] ++ a.nativeBuildInputs or [];
|
||||
})).drivers;
|
||||
}
|
||||
;
|
||||
};
|
||||
|
||||
mesa_glu = callPackage ../development/libraries/mesa-glu {
|
||||
inherit (darwin.apple_sdk.frameworks) ApplicationServices;
|
||||
|
|
Loading…
Reference in a new issue