From 5e45a6ce8fa8ed56f2aca828e056ad5f40980ec3 Mon Sep 17 00:00:00 2001 From: Benjamin Saunders Date: Wed, 5 Oct 2016 15:33:10 -0700 Subject: [PATCH 1/4] mesa: enable intel vulkan driver --- pkgs/development/libraries/mesa/default.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index dd9302db9524..5ff884fd3c1d 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -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/ From 41d894b87f08fc1521733bdb87561565baef678c Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Wed, 26 Oct 2016 22:34:27 -0400 Subject: [PATCH 2/4] libiconv: Just include the iconv headers --- pkgs/top-level/all-packages.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index eab43bbdb0e3..26953af8acf2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -7937,10 +7937,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; }; From 4fee7fc82e29cfb318cce31558c588da23625861 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Thu, 27 Oct 2016 22:14:10 +0200 Subject: [PATCH 3/4] xorg.libXrender: propagate renderproto Fixes #19909; there's a dependency between the headers. --- pkgs/servers/x11/xorg/overrides.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/servers/x11/xorg/overrides.nix b/pkgs/servers/x11/xorg/overrides.nix index 930132bb071a..c87acfee43a8 100644 --- a/pkgs/servers/x11/xorg/overrides.nix +++ b/pkgs/servers/x11/xorg/overrides.nix @@ -217,6 +217,7 @@ in libXrender = attrs: attrs // { outputs = [ "out" "dev" "doc" ]; + propagatedBuildInputs = [ xorg.renderproto ]; preConfigure = setMalloc0ReturnsNullCrossCompiling; }; From cd436079fc7f80aecb271170d2b74b2054cbcf65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Sat, 29 Oct 2016 16:37:48 +0200 Subject: [PATCH 4/4] openldap: fixup build on Darwin, probably Introduced by #19288. --- pkgs/development/libraries/openldap/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/openldap/default.nix b/pkgs/development/libraries/openldap/default.nix index b197236a6490..cdef4d9a49f4 100644 --- a/pkgs/development/libraries/openldap/default.nix +++ b/pkgs/development/libraries/openldap/default.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation rec { ''; postInstall = '' - chmod +x $out/lib/*.so + chmod +x "$out"/lib/*.{so,dylib} ''; meta = with stdenv.lib; {