mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 04:43:09 +03:00
libGL rename: fallout after a week on master
and a few nitpicks.
This commit is contained in:
parent
565bd805e6
commit
04c31a5de1
@ -1,7 +1,7 @@
|
||||
{ stdenv, lib, fetchurl, cmake, pkgconfig, lndir
|
||||
, zlib, gettext, libvdpau, libva, libXv, sqlite
|
||||
, yasm, freetype, fontconfig, fribidi
|
||||
, makeWrapper, libXext, mesa_glu, qttools, qtbase
|
||||
, makeWrapper, libXext, libGLU, qttools, qtbase
|
||||
, alsaLib
|
||||
, withX265 ? true, x265
|
||||
, withX264 ? true, x264
|
||||
@ -37,7 +37,7 @@ stdenv.mkDerivation rec {
|
||||
nativeBuildInputs = [ yasm cmake pkgconfig ];
|
||||
buildInputs = [
|
||||
zlib gettext libvdpau libva libXv sqlite fribidi fontconfig
|
||||
freetype alsaLib libXext mesa_glu makeWrapper
|
||||
freetype alsaLib libXext libGLU makeWrapper
|
||||
] ++ lib.optional withX264 x264
|
||||
++ lib.optional withX265 x265
|
||||
++ lib.optional withXvid xvidcore
|
||||
|
@ -14,7 +14,7 @@
|
||||
}:
|
||||
|
||||
/** Packaging design:
|
||||
- The basic mesa ($out) contains headers and libraries (GLU is in mesa_glu now).
|
||||
- The basic mesa ($out) contains headers and libraries (GLU is in libGLU now).
|
||||
This or the mesa attribute (which also contains GLU) are small (~ 2 MB, mostly headers)
|
||||
and are designed to be the buildInput of other packages.
|
||||
- DRI drivers are compiled into $drivers output, which is much bigger and
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ stdenv, fetchurl, pkgconfig, mesa_noglu, epoxy, libX11 }:
|
||||
{ stdenv, fetchurl, pkgconfig, libGLU, epoxy, libX11 }:
|
||||
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||
sha256 = "a549e351e0eb2ad1df471386ddcf85f522e7202808d1616ee9ff894209066e1a";
|
||||
};
|
||||
|
||||
buildInputs = [ mesa_noglu epoxy libX11 ];
|
||||
buildInputs = [ libGLU epoxy libX11 ];
|
||||
|
||||
nativeBuildInputs = [ pkgconfig ];
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
{ stdenv, fetchFromGitHub, fetchpatch
|
||||
, libX11, mesa_noglu
|
||||
, libX11, libGL
|
||||
, nvidia_x11 ? null
|
||||
, libglvnd
|
||||
}:
|
||||
|
||||
let
|
||||
aPackage =
|
||||
if nvidia_x11 == null then mesa_noglu
|
||||
if nvidia_x11 == null then libGL
|
||||
else if nvidia_x11.useGLVND then libglvnd
|
||||
else nvidia_x11;
|
||||
|
||||
@ -28,12 +28,12 @@ in stdenv.mkDerivation {
|
||||
})
|
||||
];
|
||||
|
||||
buildInputs = [ libX11 mesa_noglu ];
|
||||
buildInputs = [ libX11 libGL ];
|
||||
|
||||
makeFlags = [ "LIBDIR=$(out)/lib"
|
||||
"PRIMUS_libGLa=${aPackage}/lib/libGL.so"
|
||||
"PRIMUS_libGLd=${mesa_noglu}/lib/libGL.so"
|
||||
"PRIMUS_LOAD_GLOBAL=${mesa_noglu}/lib/libglapi.so"
|
||||
"PRIMUS_libGLd=${libGL}/lib/libGL.so"
|
||||
"PRIMUS_LOAD_GLOBAL=${libGL}/lib/libglapi.so"
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
|
@ -8599,7 +8599,7 @@ with pkgs;
|
||||
# Multi-arch "drivers" which we want to build for i686.
|
||||
driversi686Linux = recurseIntoAttrs {
|
||||
inherit (pkgsi686Linux)
|
||||
mesa_noglu
|
||||
mesa_drivers
|
||||
vaapiIntel
|
||||
libvdpau-va-gl
|
||||
vaapiVdpau
|
||||
@ -12775,7 +12775,7 @@ with pkgs;
|
||||
inherit (buildPackages) pkgconfig xmlto asciidoc flex bison;
|
||||
inherit (darwin) apple_sdk cf-private libobjc;
|
||||
bootstrap_cmds = if stdenv.isDarwin then darwin.bootstrap_cmds else null;
|
||||
mesa = mesa_noglu;
|
||||
mesa = libGL;
|
||||
python = python2; # Incompatible with Python 3x
|
||||
udev = if stdenv.isLinux then udev else null;
|
||||
libdrm = if stdenv.isLinux then libdrm else null;
|
||||
|
Loading…
Reference in New Issue
Block a user