git.iko.soy/typeable/nixpkgs
on master help sign in
Merge recent staging

... to avoid double rebuild due to openldap (thousands of jobs).

commit0896dbde46a8a3f249fe409c77be2f7474731a18 authorVladimír Čunát <vcunat@gmail.com> dateSat 29 Oct 2016, 17:13 (10 years ago) parent4b52969cd43607
4 files changed+25−9
pkgs/development/libraries/mesa/default.nix+14−7 pkgs/development/libraries/openldap/default.nix+1−1 pkgs/servers/x11/xorg/overrides.nix+1 pkgs/top-level/all-packages.nix+9−1
pkgs/development/libraries/mesa/default.nix+14−7
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, fetchpatch
22, pkgconfig, intltool, autoreconfHook, substituteAll
3−, file, expat, libdrm, xorg, wayland, systemd
3+, file, expat, libdrm, xorg, wayland, systemd, openssl
44, llvmPackages, libffi, libomxil-bellagio, libva
55, libelf, libvdpau, python2
66, grsecEnabled ? false
@@ -71,11 +71,13 @@ stdenv.mkDerivation {
7171 "--with-dri-driverdir=$(drivers)/lib/dri"
7272 "--with-dri-searchpath=${driverLink}/lib/dri"
7373 "--with-egl-platforms=x11,wayland,drm"
74− (optionalString (stdenv.system != "armv7l-linux")
75− "--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast")
76− (optionalString (stdenv.system != "armv7l-linux")
77− "--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast")
78−
74+ ]
75+ ++ optionals (stdenv.system != "armv7l-linux") [
76+ "--with-gallium-drivers=svga,i915,ilo,r300,r600,radeonsi,nouveau,freedreno,swrast"
77+ "--with-dri-drivers=i915,i965,nouveau,radeon,r200,swrast"
78+ "--with-vulkan-drivers=intel"
79+ ]
80+ ++ [
7981 (enableFeature enableTextureFloats "texture-float")
8082 (enableFeature grsecEnabled "glx-rts")
8183 (enableFeature stdenv.isLinux "dri3")
@@ -112,7 +114,7 @@ stdenv.mkDerivation {
112114 glproto dri2proto dri3proto presentproto
113115 libX11 libXext libxcb libXt libXfixes libxshmfence
114116 libffi wayland libvdpau libelf libXvMC
115− libomxil-bellagio libva libpthreadstubs
117+ libomxil-bellagio libva libpthreadstubs openssl/*or another sha1 provider*/
116118 (python2.withPackages (ps: [ ps.Mako ]))
117119 ] ++ optional stdenv.isLinux systemd;
118120
@@ -134,8 +136,13 @@ stdenv.mkDerivation {
134136 $out/lib/vdpau \
135137 $out/lib/bellagio \
136138 $out/lib/libxatracker* \
139+ $out/lib/libvulkan_* \
140+
141+ # move share/vulkan/icd.d/
142+ mv $out/share/ $drivers/
137143
138144 mv $out/lib/dri/* $drivers/lib/dri
145+ rmdir "$out/lib/dri"
139146
140147 # move libOSMesa to $osmesa, as it's relatively big
141148 mkdir -p {$osmesa,$drivers}/lib/
pkgs/development/libraries/openldap/default.nix+1−1
@@ -38,7 +38,7 @@ stdenv.mkDerivation rec {
3838 '';
3939
4040 postInstall = ''
41− chmod +x $out/lib/*.so
41+ chmod +x "$out"/lib/*.{so,dylib}
4242 '';
4343
4444 meta = with stdenv.lib; {
pkgs/servers/x11/xorg/overrides.nix+1
@@ -217,6 +217,7 @@ in
217217
218218 libXrender = attrs: attrs // {
219219 outputs = [ "out" "dev" "doc" ];
220+ propagatedBuildInputs = [ xorg.renderproto ];
220221 preConfigure = setMalloc0ReturnsNullCrossCompiling;
221222 };
222223
pkgs/top-level/all-packages.nix+9−1
@@ -7925,10 +7925,18 @@ in
79257925 (if crossSystem.libc == "glibc" then libcCross
79267926 else if crossSystem.libc == "libSystem" then darwin.libiconv
79277927 else libiconvReal)
7928− else if stdenv.isGlibc then stdenv.cc.libc
7928+ else if stdenv.isGlibc then glibcIconv stdenv.cc.libc
79297929 else if stdenv.isDarwin then darwin.libiconv
79307930 else libiconvReal;
79317931
7932+ glibcIconv = libc: let
7933+ inherit (builtins.parseDrvName libc.name) name version;
7934+ libcDev = lib.getDev libc;
7935+ in runCommand "${name}-iconv-${version}" {} ''
7936+ mkdir -p $out/include
7937+ ln -sv ${libcDev}/include/iconv.h $out/include
7938+ '';
7939+
79327940 libiconvReal = callPackage ../development/libraries/libiconv {
79337941 fetchurl = fetchurlBoot;
79347942 };