diff --git a/pkgs/development/libraries/mesa-glu/default.nix b/pkgs/development/libraries/mesa-glu/default.nix index 4ff4585dee33..502329226ff3 100644 --- a/pkgs/development/libraries/mesa-glu/default.nix +++ b/pkgs/development/libraries/mesa-glu/default.nix @@ -11,8 +11,6 @@ stdenv.mkDerivation rec { buildInputs = [ pkgconfig ]; propagatedBuildInputs = [ mesa_noglu ]; - passthru = { inherit (mesa_noglu) libdrm; inherit mesa_noglu; }; - meta = { description = "OpenGL utility library"; homepage = http://cgit.freedesktop.org/mesa/glu/; diff --git a/pkgs/development/libraries/mesa/default.nix b/pkgs/development/libraries/mesa/default.nix index 350a9b06c3a7..cb874f8e8201 100644 --- a/pkgs/development/libraries/mesa/default.nix +++ b/pkgs/development/libraries/mesa/default.nix @@ -12,7 +12,7 @@ let version = "9.1.1"; in stdenv.mkDerivation { - name = "mesa-${version}"; + name = "mesa-noglu-${version}"; src = fetchurl { url = "ftp://ftp.freedesktop.org/pub/mesa/${version}/MesaLib-${version}.tar.bz2"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7cb96b8a6786..60e99962d5e5 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4565,8 +4565,12 @@ let mesaSupported = lib.elem system lib.platforms.mesaPlatforms; mesa_noglu = callPackage ../development/libraries/mesa { }; + mesa_glu = callPackage ../development/libraries/mesa-glu { }; mesa = if stdenv.isDarwin then darwinX11AndOpenGL - else callPackage ../development/libraries/mesa-glu { }; # mesa *with* GL/glu.h + else buildEnv { + name = "mesa"; + paths = [ mesa_glu mesa_noglu ]; + }; darwinX11AndOpenGL = callPackage ../os-specific/darwin/native-x11-and-opengl { }; metaEnvironment = recurseIntoAttrs (let callPackage = newScope pkgs.metaEnvironment; in rec {