Merge pull request #118479 from gebner/glvndheaders
libGL: use headers from glvnd
This commit is contained in:
commit
a8aeef711e
@ -1,7 +1,7 @@
|
|||||||
{ stdenv, lib, zlib, glib, alsaLib, dbus, gtk3, atk, pango, freetype, fontconfig
|
{ stdenv, lib, zlib, glib, alsaLib, dbus, gtk3, atk, pango, freetype, fontconfig
|
||||||
, libgnome-keyring3, gdk-pixbuf, cairo, cups, expat, libgpgerror, nspr
|
, libgnome-keyring3, gdk-pixbuf, cairo, cups, expat, libgpgerror, nspr
|
||||||
, gconf, nss, xorg, libcap, systemd, libnotify, libsecret, libuuid, at-spi2-atk
|
, gconf, nss, xorg, libcap, systemd, libnotify, libsecret, libuuid, at-spi2-atk
|
||||||
, at-spi2-core, libdbusmenu
|
, at-spi2-core, libdbusmenu, mesa
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
@ -12,6 +12,7 @@ let
|
|||||||
xorg.libXcomposite xorg.libXi xorg.libXfixes xorg.libXrandr
|
xorg.libXcomposite xorg.libXi xorg.libXfixes xorg.libXrandr
|
||||||
xorg.libXcursor xorg.libxkbfile xorg.libXScrnSaver libcap systemd libnotify
|
xorg.libXcursor xorg.libxkbfile xorg.libXScrnSaver libcap systemd libnotify
|
||||||
xorg.libxcb libsecret libuuid at-spi2-atk at-spi2-core libdbusmenu
|
xorg.libxcb libsecret libuuid at-spi2-atk at-spi2-core libdbusmenu
|
||||||
|
mesa # required for libgbm
|
||||||
];
|
];
|
||||||
|
|
||||||
libPathNative = lib.makeLibraryPath packages;
|
libPathNative = lib.makeLibraryPath packages;
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
, alsaLib, atk, at-spi2-atk, at-spi2-core, cairo, dbus, cups, expat
|
, alsaLib, atk, at-spi2-atk, at-spi2-core, cairo, dbus, cups, expat
|
||||||
, gdk-pixbuf, glib, gtk3, libX11, libXScrnSaver, libXcomposite, libXcursor
|
, gdk-pixbuf, glib, gtk3, libX11, libXScrnSaver, libXcomposite, libXcursor
|
||||||
, libXdamage, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst
|
, libXdamage, libXext, libXfixes, libXi, libXrandr, libXrender, libXtst
|
||||||
, libxcb, libuuid, libxshmfence, nspr, nss, pango
|
, libxcb, libuuid, libxshmfence, nspr, nss, pango, mesa
|
||||||
|
|
||||||
, systemd
|
, systemd
|
||||||
}:
|
}:
|
||||||
@ -50,6 +50,7 @@ stdenv.mkDerivation rec {
|
|||||||
libXtst
|
libXtst
|
||||||
libxcb
|
libxcb
|
||||||
libuuid
|
libuuid
|
||||||
|
mesa # for libgbm
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
pango
|
pango
|
||||||
|
@ -138,6 +138,7 @@ let
|
|||||||
bison gperf libkrb5
|
bison gperf libkrb5
|
||||||
glib gtk3 dbus-glib
|
glib gtk3 dbus-glib
|
||||||
libXScrnSaver libXcursor libXtst libxshmfence libGLU libGL
|
libXScrnSaver libXcursor libXtst libxshmfence libGLU libGL
|
||||||
|
mesa # required for libgbm
|
||||||
pciutils protobuf speechd libXdamage at-spi2-core
|
pciutils protobuf speechd libXdamage at-spi2-core
|
||||||
jre
|
jre
|
||||||
pipewire
|
pipewire
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
, libjpeg, zlib, dbus, dbus-glib, bzip2, xorg
|
, libjpeg, zlib, dbus, dbus-glib, bzip2, xorg
|
||||||
, freetype, fontconfig, file, nspr, nss, nss_3_53
|
, freetype, fontconfig, file, nspr, nss, nss_3_53
|
||||||
, yasm, libGLU, libGL, sqlite, unzip, makeWrapper
|
, yasm, libGLU, libGL, sqlite, unzip, makeWrapper
|
||||||
, hunspell, libXdamage, libevent, libstartup_notification
|
, hunspell, libevent, libstartup_notification
|
||||||
, libvpx_1_8
|
, libvpx_1_8
|
||||||
, icu67, libpng, jemalloc, glib, pciutils
|
, icu67, libpng, jemalloc, glib, pciutils
|
||||||
, autoconf213, which, gnused, rustPackages, rustPackages_1_45
|
, autoconf213, which, gnused, rustPackages, rustPackages_1_45
|
||||||
@ -22,7 +22,7 @@
|
|||||||
, pulseaudioSupport ? stdenv.isLinux, libpulseaudio
|
, pulseaudioSupport ? stdenv.isLinux, libpulseaudio
|
||||||
, ffmpegSupport ? true
|
, ffmpegSupport ? true
|
||||||
, gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
|
, gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
|
||||||
, waylandSupport ? true, libxkbcommon
|
, waylandSupport ? true, libxkbcommon, libdrm
|
||||||
, ltoSupport ? (stdenv.isLinux && stdenv.is64bit), overrideCC, buildPackages
|
, ltoSupport ? (stdenv.isLinux && stdenv.is64bit), overrideCC, buildPackages
|
||||||
, gssSupport ? true, libkrb5
|
, gssSupport ? true, libkrb5
|
||||||
, pipewireSupport ? waylandSupport && webrtcSupport, pipewire
|
, pipewireSupport ? waylandSupport && webrtcSupport, pipewire
|
||||||
@ -161,6 +161,7 @@ buildStdenv.mkDerivation ({
|
|||||||
xorg.libX11 xorg.libXrender xorg.libXft xorg.libXt file
|
xorg.libX11 xorg.libXrender xorg.libXft xorg.libXt file
|
||||||
xorg.pixman yasm libGLU libGL
|
xorg.pixman yasm libGLU libGL
|
||||||
xorg.xorgproto
|
xorg.xorgproto
|
||||||
|
xorg.libXdamage
|
||||||
xorg.libXext makeWrapper
|
xorg.libXext makeWrapper
|
||||||
libevent libstartup_notification /* cairo */
|
libevent libstartup_notification /* cairo */
|
||||||
libpng jemalloc glib
|
libpng jemalloc glib
|
||||||
@ -175,7 +176,7 @@ buildStdenv.mkDerivation ({
|
|||||||
++ lib.optional pulseaudioSupport libpulseaudio # only headers are needed
|
++ lib.optional pulseaudioSupport libpulseaudio # only headers are needed
|
||||||
++ lib.optional gtk3Support gtk3
|
++ lib.optional gtk3Support gtk3
|
||||||
++ lib.optional gssSupport libkrb5
|
++ lib.optional gssSupport libkrb5
|
||||||
++ lib.optional waylandSupport libxkbcommon
|
++ lib.optionals waylandSupport [ libxkbcommon libdrm ]
|
||||||
++ lib.optional pipewireSupport pipewire
|
++ lib.optional pipewireSupport pipewire
|
||||||
++ lib.optional (lib.versionAtLeast ffversion "82") gnum4
|
++ lib.optional (lib.versionAtLeast ffversion "82") gnum4
|
||||||
++ lib.optionals buildStdenv.isDarwin [ CoreMedia ExceptionHandling Kerberos
|
++ lib.optionals buildStdenv.isDarwin [ CoreMedia ExceptionHandling Kerberos
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
, gnome2, gtk3, atk, at-spi2-atk, cairo, pango, gdk-pixbuf, glib, freetype, fontconfig
|
, gnome2, gtk3, atk, at-spi2-atk, cairo, pango, gdk-pixbuf, glib, freetype, fontconfig
|
||||||
, dbus, libX11, xorg, libXi, libXcursor, libXdamage, libXrandr, libXcomposite
|
, dbus, libX11, xorg, libXi, libXcursor, libXdamage, libXrandr, libXcomposite
|
||||||
, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss, nspr, alsaLib
|
, libXext, libXfixes, libXrender, libXtst, libXScrnSaver, nss, nspr, alsaLib
|
||||||
, cups, expat, libuuid, at-spi2-core, libappindicator-gtk3
|
, cups, expat, libuuid, at-spi2-core, libappindicator-gtk3, mesa
|
||||||
# Runtime dependencies:
|
# Runtime dependencies:
|
||||||
, systemd, libnotify, libdbusmenu, libpulseaudio
|
, systemd, libnotify, libdbusmenu, libpulseaudio
|
||||||
# Unfortunately this also overwrites the UI language (not just the spell
|
# Unfortunately this also overwrites the UI language (not just the spell
|
||||||
@ -73,6 +73,7 @@ in stdenv.mkDerivation rec {
|
|||||||
libappindicator-gtk3
|
libappindicator-gtk3
|
||||||
libnotify
|
libnotify
|
||||||
libuuid
|
libuuid
|
||||||
|
mesa # for libgbm
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
pango
|
pango
|
||||||
|
@ -61,7 +61,7 @@
|
|||||||
, alsaSupport ? stdenv.isLinux, alsaLib
|
, alsaSupport ? stdenv.isLinux, alsaLib
|
||||||
, pulseaudioSupport ? stdenv.isLinux, libpulseaudio
|
, pulseaudioSupport ? stdenv.isLinux, libpulseaudio
|
||||||
, gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
|
, gtk3Support ? true, gtk2, gtk3, wrapGAppsHook
|
||||||
, waylandSupport ? true
|
, waylandSupport ? true, libdrm
|
||||||
, libxkbcommon, calendarSupport ? true
|
, libxkbcommon, calendarSupport ? true
|
||||||
|
|
||||||
# Use official trademarked branding. Permission obtained at:
|
# Use official trademarked branding. Permission obtained at:
|
||||||
@ -137,12 +137,13 @@ stdenv.mkDerivation rec {
|
|||||||
xorg.libXt
|
xorg.libXt
|
||||||
xorg.pixman
|
xorg.pixman
|
||||||
xorg.xorgproto
|
xorg.xorgproto
|
||||||
|
xorg.libXdamage
|
||||||
zip
|
zip
|
||||||
zlib
|
zlib
|
||||||
] ++ lib.optional alsaSupport alsaLib
|
] ++ lib.optional alsaSupport alsaLib
|
||||||
++ lib.optional gtk3Support gtk3
|
++ lib.optional gtk3Support gtk3
|
||||||
++ lib.optional pulseaudioSupport libpulseaudio
|
++ lib.optional pulseaudioSupport libpulseaudio
|
||||||
++ lib.optional waylandSupport libxkbcommon;
|
++ lib.optionals waylandSupport [ libxkbcommon libdrm ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE =[
|
NIX_CFLAGS_COMPILE =[
|
||||||
"-I${glib.dev}/include/gio-unix-2.0"
|
"-I${glib.dev}/include/gio-unix-2.0"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, lib, fetchurl, dpkg
|
{ stdenv, lib, fetchurl, dpkg
|
||||||
, alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype
|
, alsaLib, atk, cairo, cups, dbus, expat, fontconfig, freetype
|
||||||
, gdk-pixbuf, glib, gnome2, pango, nspr, nss, gtk3
|
, gdk-pixbuf, glib, gnome2, pango, nspr, nss, gtk3, mesa
|
||||||
, xorg, autoPatchelfHook, systemd, libnotify, libappindicator
|
, xorg, autoPatchelfHook, systemd, libnotify, libappindicator
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -20,6 +20,7 @@ let deps = [
|
|||||||
gtk3
|
gtk3
|
||||||
libappindicator
|
libappindicator
|
||||||
libnotify
|
libnotify
|
||||||
|
mesa
|
||||||
xorg.libX11
|
xorg.libX11
|
||||||
xorg.libXScrnSaver
|
xorg.libXScrnSaver
|
||||||
xorg.libXcomposite
|
xorg.libXcomposite
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
, gtk3
|
, gtk3
|
||||||
, libpulseaudio
|
, libpulseaudio
|
||||||
, libudev0-shim
|
, libudev0-shim
|
||||||
|
, libdrm
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
, nspr
|
, nspr
|
||||||
, nss
|
, nss
|
||||||
@ -101,6 +102,7 @@ in stdenv.mkDerivation rec {
|
|||||||
gtk2
|
gtk2
|
||||||
gtk3
|
gtk3
|
||||||
libpulseaudio
|
libpulseaudio
|
||||||
|
libdrm
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
qt5.qtbase
|
qt5.qtbase
|
||||||
|
@ -19,7 +19,7 @@ stdenv.mkDerivation {
|
|||||||
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
|
||||||
|
|
||||||
nativeBuildInputs = [ pkg-config ];
|
nativeBuildInputs = [ pkg-config ];
|
||||||
buildInputs = [ which gnome3.gnome-common glib intltool libtool cairo gtk3 xorg.xwininfo ]
|
buildInputs = [ which gnome3.gnome-common glib intltool libtool cairo gtk3 xorg.xwininfo xorg.libXdamage ]
|
||||||
++ (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-bad gst-plugins-good gst-plugins-ugly gst-libav wrapGAppsHook ]);
|
++ (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-bad gst-plugins-good gst-plugins-ugly gst-libav wrapGAppsHook ]);
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -127,6 +127,7 @@ in stdenv.mkDerivation {
|
|||||||
bluez giflib glib harfbuzz lcms2 libpthreadstubs
|
bluez giflib glib harfbuzz lcms2 libpthreadstubs
|
||||||
ffmpeg flatbuffers fmt fstrcmp rapidjson
|
ffmpeg flatbuffers fmt fstrcmp rapidjson
|
||||||
lirc
|
lirc
|
||||||
|
mesa # for libEGL
|
||||||
]
|
]
|
||||||
++ lib.optional x11Support [
|
++ lib.optional x11Support [
|
||||||
libX11 xorgproto libXt libXmu libXext.dev libXdmcp
|
libX11 xorgproto libXt libXmu libXext.dev libXdmcp
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
, gtk3-x11
|
, gtk3-x11
|
||||||
, libudev0-shim
|
, libudev0-shim
|
||||||
, libuuid
|
, libuuid
|
||||||
|
, mesa
|
||||||
, nss
|
, nss
|
||||||
, nspr
|
, nspr
|
||||||
, xorg
|
, xorg
|
||||||
@ -63,6 +64,7 @@ stdenv.mkDerivation rec {
|
|||||||
glib
|
glib
|
||||||
pango
|
pango
|
||||||
gtk3-x11
|
gtk3-x11
|
||||||
|
mesa
|
||||||
nss
|
nss
|
||||||
nspr
|
nspr
|
||||||
libuuid
|
libuuid
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub
|
||||||
, meson, ninja, pkg-config, wayland, scdoc, makeWrapper
|
, meson, ninja, pkg-config, wayland, scdoc, makeWrapper
|
||||||
, wlroots, wayland-protocols, pixman, libxkbcommon
|
, wlroots, wayland-protocols, pixman, libxkbcommon
|
||||||
, systemd, libGL, libX11
|
, systemd, libGL, libX11, mesa
|
||||||
, xwayland ? null
|
, xwayland ? null
|
||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
wlroots wayland wayland-protocols pixman libxkbcommon
|
wlroots wayland wayland-protocols pixman libxkbcommon
|
||||||
|
mesa # for libEGL headers
|
||||||
systemd libGL libX11
|
systemd libGL libX11
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub
|
||||||
, meson, ninja, pkg-config, wayland, scdoc, makeWrapper
|
, meson, ninja, pkg-config, wayland, scdoc, makeWrapper
|
||||||
, wlroots, wayland-protocols, pixman, libxkbcommon
|
, wlroots, wayland-protocols, pixman, libxkbcommon
|
||||||
, cairo , pango, fontconfig, pandoc, systemd
|
, cairo , pango, fontconfig, pandoc, systemd, mesa
|
||||||
, withXwayland ? true, xwayland
|
, withXwayland ? true, xwayland
|
||||||
, nixosTests
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
@ -22,6 +22,7 @@ stdenv.mkDerivation rec {
|
|||||||
buildInputs = [
|
buildInputs = [
|
||||||
wlroots wayland wayland-protocols pixman libxkbcommon cairo
|
wlroots wayland wayland-protocols pixman libxkbcommon cairo
|
||||||
pango fontconfig pandoc systemd
|
pango fontconfig pandoc systemd
|
||||||
|
mesa # for libEGL headers
|
||||||
];
|
];
|
||||||
|
|
||||||
outputs = [ "out" "contrib" ];
|
outputs = [ "out" "contrib" ];
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ lib, stdenv, fetchzip,
|
{ lib, stdenv, fetchzip,
|
||||||
pkg-config, bmake,
|
pkg-config, bmake,
|
||||||
cairo, glib, libevdev, libinput, libxkbcommon, linux-pam, pango, pixman,
|
cairo, glib, libevdev, libinput, libxkbcommon, linux-pam, pango, pixman,
|
||||||
libucl, wayland, wayland-protocols, wlroots,
|
libucl, wayland, wayland-protocols, wlroots, mesa,
|
||||||
features ? {
|
features ? {
|
||||||
gammacontrol = true;
|
gammacontrol = true;
|
||||||
layershell = true;
|
layershell = true;
|
||||||
@ -35,6 +35,7 @@ stdenv.mkDerivation {
|
|||||||
pango
|
pango
|
||||||
pixman
|
pixman
|
||||||
libucl
|
libucl
|
||||||
|
mesa # for libEGL
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
wlroots
|
wlroots
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
, pixman
|
, pixman
|
||||||
, udev
|
, udev
|
||||||
, libGL
|
, libGL
|
||||||
|
, mesa
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -33,6 +34,7 @@ stdenv.mkDerivation rec {
|
|||||||
pixman
|
pixman
|
||||||
udev
|
udev
|
||||||
libGL
|
libGL
|
||||||
|
mesa # for libEGL
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, git
|
{ stdenv, lib, fetchurl, meson, ninja, pkg-config, git
|
||||||
, cairo, libdrm, libexecinfo, libinput, libjpeg, libxkbcommon, wayland
|
, cairo, libdrm, libexecinfo, libinput, libjpeg, libxkbcommon, wayland
|
||||||
, wayland-protocols, wf-config, wlroots
|
, wayland-protocols, wf-config, wlroots, mesa
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -15,7 +15,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ meson ninja pkg-config wayland ];
|
nativeBuildInputs = [ meson ninja pkg-config wayland ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
cairo libdrm libexecinfo libinput libjpeg libxkbcommon wayland
|
cairo libdrm libexecinfo libinput libjpeg libxkbcommon wayland
|
||||||
wayland-protocols wf-config wlroots
|
wayland-protocols wf-config wlroots mesa
|
||||||
];
|
];
|
||||||
|
|
||||||
mesonFlags = [ "--sysconfdir" "/etc" ];
|
mesonFlags = [ "--sysconfdir" "/etc" ];
|
||||||
|
@ -10,6 +10,7 @@
|
|||||||
, wayland
|
, wayland
|
||||||
, wayland-protocols
|
, wayland-protocols
|
||||||
, wlroots
|
, wlroots
|
||||||
|
, mesa
|
||||||
, xwayland
|
, xwayland
|
||||||
, makeWrapper
|
, makeWrapper
|
||||||
}:
|
}:
|
||||||
@ -32,6 +33,7 @@ stdenv.mkDerivation rec {
|
|||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
wlroots
|
wlroots
|
||||||
|
mesa # for libEGL
|
||||||
xwayland
|
xwayland
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
, granite
|
, granite
|
||||||
, gettext
|
, gettext
|
||||||
, mutter
|
, mutter
|
||||||
|
, mesa
|
||||||
, json-glib
|
, json-glib
|
||||||
, python3
|
, python3
|
||||||
, elementary-gtk-theme
|
, elementary-gtk-theme
|
||||||
@ -55,6 +56,7 @@ stdenv.mkDerivation rec {
|
|||||||
json-glib
|
json-glib
|
||||||
libgee
|
libgee
|
||||||
mutter
|
mutter
|
||||||
|
mesa # for libEGL
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
|
@ -36,7 +36,7 @@
|
|||||||
, tracker
|
, tracker
|
||||||
, x11Support ? stdenv.isLinux
|
, x11Support ? stdenv.isLinux
|
||||||
, waylandSupport ? stdenv.isLinux
|
, waylandSupport ? stdenv.isLinux
|
||||||
, mesa
|
, libGL
|
||||||
, wayland
|
, wayland
|
||||||
, wayland-protocols
|
, wayland-protocols
|
||||||
, xineramaSupport ? stdenv.isLinux
|
, xineramaSupport ? stdenv.isLinux
|
||||||
@ -143,7 +143,7 @@ stdenv.mkDerivation rec {
|
|||||||
# explicitly propagated, always needed
|
# explicitly propagated, always needed
|
||||||
Cocoa
|
Cocoa
|
||||||
] ++ lib.optionals waylandSupport [
|
] ++ lib.optionals waylandSupport [
|
||||||
mesa
|
libGL
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
] ++ lib.optionals xineramaSupport [
|
] ++ lib.optionals xineramaSupport [
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
, tracker
|
, tracker
|
||||||
, x11Support ? stdenv.isLinux
|
, x11Support ? stdenv.isLinux
|
||||||
, waylandSupport ? stdenv.isLinux
|
, waylandSupport ? stdenv.isLinux
|
||||||
, mesa
|
, libGL
|
||||||
, vulkan-loader
|
, vulkan-loader
|
||||||
, vulkan-headers
|
, vulkan-headers
|
||||||
, wayland
|
, wayland
|
||||||
@ -124,7 +124,7 @@ stdenv.mkDerivation rec {
|
|||||||
] ++ lib.optionals trackerSupport [
|
] ++ lib.optionals trackerSupport [
|
||||||
tracker
|
tracker
|
||||||
] ++ lib.optionals waylandSupport [
|
] ++ lib.optionals waylandSupport [
|
||||||
mesa
|
libGL
|
||||||
wayland
|
wayland
|
||||||
wayland-protocols
|
wayland-protocols
|
||||||
] ++ lib.optionals xineramaSupport [
|
] ++ lib.optionals xineramaSupport [
|
||||||
|
@ -34,9 +34,8 @@ let
|
|||||||
# Release frequency: https://www.mesa3d.org/releasing.html#schedule
|
# Release frequency: https://www.mesa3d.org/releasing.html#schedule
|
||||||
version = "21.0.2";
|
version = "21.0.2";
|
||||||
branch = versions.major version;
|
branch = versions.major version;
|
||||||
in
|
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
self = stdenv.mkDerivation {
|
||||||
pname = "mesa";
|
pname = "mesa";
|
||||||
inherit version;
|
inherit version;
|
||||||
|
|
||||||
@ -88,7 +87,9 @@ stdenv.mkDerivation {
|
|||||||
"find_program('${stdenv.cc.targetPrefix}nm')"
|
"find_program('${stdenv.cc.targetPrefix}nm')"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
outputs = [ "out" "dev" "drivers" ] ++ lib.optional enableOSMesa "osmesa";
|
outputs = [ "out" "dev" "drivers" ]
|
||||||
|
++ lib.optional enableOSMesa "osmesa"
|
||||||
|
++ lib.optional stdenv.isLinux "driversdev";
|
||||||
|
|
||||||
# TODO: Figure out how to enable opencl without having a runtime dependency on clang
|
# TODO: Figure out how to enable opencl without having a runtime dependency on clang
|
||||||
mesonFlags = [
|
mesonFlags = [
|
||||||
@ -181,20 +182,22 @@ stdenv.mkDerivation {
|
|||||||
mv -t $osmesa/lib/ $out/lib/libOSMesa*
|
mv -t $osmesa/lib/ $out/lib/libOSMesa*
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# TODO:
|
|
||||||
# check $out doesn't depend on llvm: builder failures are ignored
|
|
||||||
# for some reason grep -qv '${llvmPackages.llvm}' -R "$out";
|
|
||||||
postFixup = optionalString stdenv.isLinux ''
|
postFixup = optionalString stdenv.isLinux ''
|
||||||
# set the default search path for DRI drivers; used e.g. by X server
|
# set the default search path for DRI drivers; used e.g. by X server
|
||||||
substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace "$drivers" "${libglvnd.driverLink}"
|
substituteInPlace "$dev/lib/pkgconfig/dri.pc" --replace "$drivers" "${libglvnd.driverLink}"
|
||||||
|
substituteInPlace "$dev/lib/pkgconfig/d3d.pc" --replace "$drivers" "${libglvnd.driverLink}"
|
||||||
|
|
||||||
# remove pkgconfig files for GL/EGL; they are provided by libGL.
|
# remove pkgconfig files for GL/EGL; they are provided by libGL.
|
||||||
rm -f $dev/lib/pkgconfig/{gl,egl}.pc
|
rm -f $dev/lib/pkgconfig/{gl,egl}.pc
|
||||||
|
|
||||||
# Update search path used by pkg-config
|
# Move development files for libraries in $drivers to $driversdev
|
||||||
for pc in $dev/lib/pkgconfig/{d3d,dri,xatracker}.pc; do
|
mkdir -p $driversdev/include
|
||||||
if [ -f "$pc" ]; then
|
mv $dev/include/xa_* $dev/include/d3d* $driversdev/include
|
||||||
substituteInPlace "$pc" --replace $out $drivers
|
mkdir -p $driversdev/lib/pkgconfig
|
||||||
|
for pc in lib/pkgconfig/{xatracker,d3d}.pc; do
|
||||||
|
if [ -f "$dev/$pc" ]; then
|
||||||
|
substituteInPlace "$dev/$pc" --replace $out $drivers
|
||||||
|
mv $dev/$pc $driversdev/$pc
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -212,6 +215,14 @@ stdenv.mkDerivation {
|
|||||||
passthru = {
|
passthru = {
|
||||||
inherit libdrm;
|
inherit libdrm;
|
||||||
inherit (libglvnd) driverLink;
|
inherit (libglvnd) driverLink;
|
||||||
|
|
||||||
|
tests.devDoesNotDependOnLLVM = stdenv.mkDerivation {
|
||||||
|
name = "mesa-dev-does-not-depend-on-llvm";
|
||||||
|
buildCommand = ''
|
||||||
|
echo ${self.dev} >>$out
|
||||||
|
'';
|
||||||
|
disallowedRequisites = [ llvmPackages.llvm self.drivers ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -231,4 +242,6 @@ stdenv.mkDerivation {
|
|||||||
platforms = platforms.mesaPlatforms;
|
platforms = platforms.mesaPlatforms;
|
||||||
maintainers = with maintainers; [ primeos vcunat ]; # Help is welcome :)
|
maintainers = with maintainers; [ primeos vcunat ]; # Help is welcome :)
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
|
in self
|
||||||
|
@ -52,7 +52,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
mkdir -p $dev/{,lib/pkgconfig,nix-support}
|
mkdir -p $dev/{,lib/pkgconfig,nix-support}
|
||||||
echo "$out ${libglvnd} ${libglvnd.dev}" > $dev/nix-support/propagated-build-inputs
|
echo "$out ${libglvnd} ${libglvnd.dev}" > $dev/nix-support/propagated-build-inputs
|
||||||
ln -s ${mesa.dev}/include $dev/include
|
ln -s ${libglvnd.dev}/include $dev/include
|
||||||
|
|
||||||
genPkgConfig() {
|
genPkgConfig() {
|
||||||
local name="$1"
|
local name="$1"
|
||||||
@ -61,9 +61,9 @@ stdenv.mkDerivation {
|
|||||||
cat <<EOF >$dev/lib/pkgconfig/$name.pc
|
cat <<EOF >$dev/lib/pkgconfig/$name.pc
|
||||||
Name: $name
|
Name: $name
|
||||||
Description: $lib library
|
Description: $lib library
|
||||||
Version: ${mesa.version}
|
Version: ${libglvnd.version}
|
||||||
Libs: -L${libglvnd.out}/lib -l$lib
|
Libs: -L${libglvnd.out}/lib -l$lib
|
||||||
Cflags: -I${mesa.dev}/include -I${libglvnd.dev}/include
|
Cflags: -I${libglvnd.dev}/include
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -118,6 +118,7 @@ let
|
|||||||
./qtwebkit-darwin-no-qos-classes.patch
|
./qtwebkit-darwin-no-qos-classes.patch
|
||||||
];
|
];
|
||||||
qttools = [ ./qttools.patch ];
|
qttools = [ ./qttools.patch ];
|
||||||
|
qtwayland = [ ./qtwayland-libdrm-build.patch ];
|
||||||
};
|
};
|
||||||
|
|
||||||
qtModule =
|
qtModule =
|
||||||
|
@ -0,0 +1,56 @@
|
|||||||
|
commit 7217ea9cf297e664be876eb82b66a1b4f157ca80
|
||||||
|
Author: Peter Seiderer <ps.report@gmx.net>
|
||||||
|
Date: Fri Apr 3 21:52:30 2020 +0200
|
||||||
|
|
||||||
|
fix libdrm related configure test failure
|
||||||
|
|
||||||
|
Fixes:
|
||||||
|
|
||||||
|
Project ERROR: Test config.qtwayland_client.tests.dmabuf-server-buffer tries to use undeclared library 'drm'
|
||||||
|
Project ERROR: Test config.qtwayland_compositor.tests.dmabuf-server-buffer tries to use undeclared library 'drm'
|
||||||
|
Project ERROR: Test config.qtwayland_compositor.tests.dmabuf-client-buffer tries to use undeclared library 'drm'
|
||||||
|
|
||||||
|
Task-number: QTBUG-83303
|
||||||
|
Change-Id: I3970f4e3855fcfa760493631a14adb6a16950aa9
|
||||||
|
Reviewed-by: Ville Voutilainen <ville.voutilainen@qt.io>
|
||||||
|
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
|
||||||
|
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
|
||||||
|
(cherry picked from commit ca63fe81df8ac910f43539719566ed6745700c2b)
|
||||||
|
(cherry picked from commit 1344ca6b5a8fbc1b28727feea6d856af8bf3bc93)
|
||||||
|
|
||||||
|
diff --git a/src/client/configure.json b/src/client/configure.json
|
||||||
|
index 06213968..27c73f89 100644
|
||||||
|
--- a/src/client/configure.json
|
||||||
|
+++ b/src/client/configure.json
|
||||||
|
@@ -74,7 +74,8 @@
|
||||||
|
"label": "Linux dma-buf Buffer Sharing",
|
||||||
|
"type": "compile",
|
||||||
|
"test": "dmabuf_server_buffer",
|
||||||
|
- "use": "egl drm"
|
||||||
|
+ "libs": "-ldrm",
|
||||||
|
+ "use": "egl"
|
||||||
|
},
|
||||||
|
"vulkan-server-buffer": {
|
||||||
|
"label": "Vulkan Buffer Sharing",
|
||||||
|
diff --git a/src/compositor/configure.json b/src/compositor/configure.json
|
||||||
|
index 0dbb3364..73e4c1a8 100644
|
||||||
|
--- a/src/compositor/configure.json
|
||||||
|
+++ b/src/compositor/configure.json
|
||||||
|
@@ -80,13 +80,15 @@
|
||||||
|
"label": "Linux dma-buf Buffer Sharing",
|
||||||
|
"type": "compile",
|
||||||
|
"test": "dmabuf_server_buffer",
|
||||||
|
- "use": "egl drm"
|
||||||
|
+ "libs": "-ldrm",
|
||||||
|
+ "use": "egl"
|
||||||
|
},
|
||||||
|
"dmabuf-client-buffer": {
|
||||||
|
"label": "Linux Client dma-buf Buffer Sharing",
|
||||||
|
"type": "compile",
|
||||||
|
"test": "dmabuf_client_buffer",
|
||||||
|
- "use": "egl drm"
|
||||||
|
+ "libs": "-ldrm",
|
||||||
|
+ "use": "egl"
|
||||||
|
},
|
||||||
|
"vulkan-server-buffer": {
|
||||||
|
"label": "Vulkan Buffer Sharing",
|
@ -36,6 +36,7 @@
|
|||||||
, readline
|
, readline
|
||||||
, libGL
|
, libGL
|
||||||
, libGLU
|
, libGLU
|
||||||
|
, mesa
|
||||||
, libintl
|
, libintl
|
||||||
, libmanette
|
, libmanette
|
||||||
, openjpeg
|
, openjpeg
|
||||||
@ -113,6 +114,7 @@ stdenv.mkDerivation rec {
|
|||||||
harfbuzz
|
harfbuzz
|
||||||
libGL
|
libGL
|
||||||
libGLU
|
libGLU
|
||||||
|
mesa # for libEGL headers
|
||||||
libgcrypt
|
libgcrypt
|
||||||
libidn
|
libidn
|
||||||
libintl
|
libintl
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, fetchzip, autoPatchelfHook, xorg, gtk2, gnome2, gtk3, nss, alsaLib, udev, unzip, wrapGAppsHook }:
|
{ stdenv, lib, fetchzip, autoPatchelfHook, xorg, gtk2, gnome2, gtk3, nss, alsaLib, udev, unzip, wrapGAppsHook, mesa }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "cypress";
|
pname = "cypress";
|
||||||
@ -18,6 +18,7 @@ stdenv.mkDerivation rec {
|
|||||||
libXScrnSaver libXdamage libXtst
|
libXScrnSaver libXdamage libXtst
|
||||||
] ++ [
|
] ++ [
|
||||||
nss gtk2 alsaLib gnome2.GConf gtk3 unzip
|
nss gtk2 alsaLib gnome2.GConf gtk3 unzip
|
||||||
|
mesa # for libgbm
|
||||||
];
|
];
|
||||||
|
|
||||||
runtimeDependencies = [ (lib.getLib udev) ];
|
runtimeDependencies = [ (lib.getLib udev) ];
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lib, stdenv, makeWrapper, fetchurl, dpkg, alsaLib, atk, cairo, cups, dbus, expat
|
{ lib, stdenv, makeWrapper, fetchurl, dpkg, alsaLib, atk, cairo, cups, dbus, expat
|
||||||
, fontconfig, freetype, gdk-pixbuf, glib, gnome2, pango, nspr, nss, gtk3, gtk2
|
, fontconfig, freetype, gdk-pixbuf, glib, gnome2, pango, mesa, nspr, nss, gtk3, gtk2
|
||||||
, at-spi2-atk, gsettings-desktop-schemas, gobject-introspection, wrapGAppsHook
|
, at-spi2-atk, gsettings-desktop-schemas, gobject-introspection, wrapGAppsHook
|
||||||
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
, libX11, libXScrnSaver, libXcomposite, libXcursor, libXdamage, libXext
|
||||||
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, nghttp2
|
, libXfixes, libXi, libXrandr, libXrender, libXtst, libxcb, nghttp2
|
||||||
@ -56,6 +56,7 @@ in stdenv.mkDerivation rec {
|
|||||||
libXrender
|
libXrender
|
||||||
libXtst
|
libXtst
|
||||||
libxcb
|
libxcb
|
||||||
|
mesa # for libgbm
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
|
@ -52,6 +52,7 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ autoreconfHook intltool pkg-config wrapGAppsHook ];
|
nativeBuildInputs = [ autoreconfHook intltool pkg-config wrapGAppsHook ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtk3 SDL2 xorg.libXv xorg.libXtst libcdio nasm ffmpeg file
|
gtk3 SDL2 xorg.libXv xorg.libXtst libcdio nasm ffmpeg file
|
||||||
|
xorg.libXxf86vm
|
||||||
];
|
];
|
||||||
|
|
||||||
dynarecTarget =
|
dynarecTarget =
|
||||||
|
@ -433,7 +433,7 @@ self: super:
|
|||||||
});
|
});
|
||||||
|
|
||||||
xf86videovmware = super.xf86videovmware.overrideAttrs (attrs: {
|
xf86videovmware = super.xf86videovmware.overrideAttrs (attrs: {
|
||||||
buildInputs = attrs.buildInputs ++ [ mesa llvm ]; # for libxatracker
|
buildInputs = attrs.buildInputs ++ [ mesa mesa.driversdev llvm ]; # for libxatracker
|
||||||
meta = attrs.meta // {
|
meta = attrs.meta // {
|
||||||
platforms = ["i686-linux" "x86_64-linux"];
|
platforms = ["i686-linux" "x86_64-linux"];
|
||||||
};
|
};
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
{ lib, clangStdenv, fetchFromGitHub, fetchurl, fetchpatch, fetchgit
|
{ lib, clangStdenv, fetchFromGitHub, fetchurl, fetchpatch, fetchgit
|
||||||
, python3Packages, mesa, ninja, pkg-config, protobuf, zinnia, qt5, fcitx5
|
, python3Packages, ninja, pkg-config, protobuf, zinnia, qt5, fcitx5
|
||||||
, jsoncpp, gtest, which, gtk2, unzip, abseil-cpp, breakpad }:
|
, jsoncpp, gtest, which, gtk2, unzip, abseil-cpp, breakpad }:
|
||||||
let
|
let
|
||||||
inherit (python3Packages) python gyp six;
|
inherit (python3Packages) python gyp six;
|
||||||
@ -31,7 +31,7 @@ in clangStdenv.mkDerivation rec {
|
|||||||
sha256 = "R+w0slVFpqtt7PIr1pyupJjRoQsABVZiMdZ9fKGKAqw=";
|
sha256 = "R+w0slVFpqtt7PIr1pyupJjRoQsABVZiMdZ9fKGKAqw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ gyp ninja mesa python pkg-config qt5.wrapQtAppsHook six which unzip ];
|
nativeBuildInputs = [ gyp ninja python pkg-config qt5.wrapQtAppsHook six which unzip ];
|
||||||
|
|
||||||
buildInputs = [ protobuf zinnia qt5.qtbase fcitx5 abseil-cpp jsoncpp gtest gtk2 ];
|
buildInputs = [ protobuf zinnia qt5.qtbase fcitx5 abseil-cpp jsoncpp gtest gtk2 ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user