treewide: refactor to use libglvnd

* Implement libGL as a symlink package which uses libraries from libglvnd and
  headers from Mesa (since ones from libglvnd are outdated).
* Use libGL_driver.driverLink treewide; add FHS paths where possible.
This commit is contained in:
Nikolay Amiantov
2018-03-26 14:01:49 +03:00
parent 803e87aa1e
commit 6bf1421f13
13 changed files with 78 additions and 58 deletions
@@ -1,7 +1,8 @@
{ stdenv, fetchurl, pkgconfig, mesa_noglu }:
{ stdenv, fetchurl, pkgconfig, libGL }:
stdenv.mkDerivation rec {
name = "glu-9.0.0";
name = "glu-${version}";
version = "9.0.0";
src = fetchurl {
url = "ftp://ftp.freedesktop.org/pub/mesa/glu/${name}.tar.bz2";
@@ -12,7 +13,7 @@ stdenv.mkDerivation rec {
'';
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ mesa_noglu ];
propagatedBuildInputs = [ libGL ];
outputs = [ "out" "dev" ];