Merge recent staging
... to avoid double rebuild due to openldap (thousands of jobs).
This commit is contained in:
commit
0896dbde46
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, fetchpatch
|
||||
, pkgconfig, intltool, autoreconfHook, substituteAll
|
||||
, file, expat, libdrm, xorg, wayland, systemd
|
||||
, file, expat, libdrm, xorg, wayland, systemd, openssl
|
||||
, llvmPackages, libffi, libomxil-bellagio, libva
|
||||
, libelf, libvdpau, python2
|
||||
, grsecEnabled ? false
|
||||
@ -71,11 +71,13 @@ stdenv.mkDerivation {
|
||||
"--with-dri-driverdir=$(drivers)/lib/dri"
|
||||
"--with-dri-searchpath=${driverLink}/lib/dri"
|
||||
"--with-egl-platforms=x11,wayland,drm"
|
||||
(optionalString (stdenv.system != "armv7l-linux")
|
||||
"--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast")
|
||||
(optionalString (stdenv.system != "armv7l-linux")
|
||||
"--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast")
|
||||
|
||||
]
|
||||
++ optionals (stdenv.system != "armv7l-linux") [
|
||||
"--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast"
|
||||
"--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast"
|
||||
"--with-vulkan-drivers=intel"
|
||||
]
|
||||
++ [
|
||||
(enableFeature enableTextureFloats "texture-float")
|
||||
(enableFeature grsecEnabled "glx-rts")
|
||||
(enableFeature stdenv.isLinux "dri3")
|
||||
@ -112,7 +114,7 @@ stdenv.mkDerivation {
|
||||
glproto dri2proto dri3proto presentproto
|
||||
libX11 libXext libxcb libXt libXfixes libxshmfence
|
||||
libffi wayland libvdpau libelf libXvMC
|
||||
libomxil-bellagio libva libpthreadstubs
|
||||
libomxil-bellagio libva libpthreadstubs openssl/*or another sha1 provider*/
|
||||
(python2.withPackages (ps: [ ps.Mako ]))
|
||||
] ++ optional stdenv.isLinux systemd;
|
||||
|
||||
@ -134,8 +136,13 @@ stdenv.mkDerivation {
|
||||
$out/lib/vdpau \
|
||||
$out/lib/bellagio \
|
||||
$out/lib/libxatracker* \
|
||||
$out/lib/libvulkan_* \
|
||||
|
||||
# move share/vulkan/icd.d/
|
||||
mv $out/share/ $drivers/
|
||||
|
||||
mv $out/lib/dri/* $drivers/lib/dri
|
||||
rmdir "$out/lib/dri"
|
||||
|
||||
# move libOSMesa to $osmesa, as it's relatively big
|
||||
mkdir -p {$osmesa,$drivers}/lib/
|
||||
|
@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
chmod +x $out/lib/*.so
|
||||
chmod +x "$out"/lib/*.{so,dylib}
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
@ -217,6 +217,7 @@ in
|
||||
|
||||
libXrender = attrs: attrs // {
|
||||
outputs = [ "out" "dev" "doc" ];
|
||||
propagatedBuildInputs = [ xorg.renderproto ];
|
||||
preConfigure = setMalloc0ReturnsNullCrossCompiling;
|
||||
};
|
||||
|
||||
|
@ -7925,10 +7925,18 @@ in
|
||||
(if crossSystem.libc == "glibc" then libcCross
|
||||
else if crossSystem.libc == "libSystem" then darwin.libiconv
|
||||
else libiconvReal)
|
||||
else if stdenv.isGlibc then stdenv.cc.libc
|
||||
else if stdenv.isGlibc then glibcIconv stdenv.cc.libc
|
||||
else if stdenv.isDarwin then darwin.libiconv
|
||||
else libiconvReal;
|
||||
|
||||
glibcIconv = libc: let
|
||||
inherit (builtins.parseDrvName libc.name) name version;
|
||||
libcDev = lib.getDev libc;
|
||||
in runCommand "${name}-iconv-${version}" {} ''
|
||||
mkdir -p $out/include
|
||||
ln -sv ${libcDev}/include/iconv.h $out/include
|
||||
'';
|
||||
|
||||
libiconvReal = callPackage ../development/libraries/libiconv {
|
||||
fetchurl = fetchurlBoot;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user