2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchurl, libGL, libX11 }:
|
2007-04-18 16:21:24 +02:00
|
|
|
|
2018-03-17 17:57:15 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "glxinfo";
|
2018-09-20 10:43:56 +02:00
|
|
|
version = "8.4.0";
|
2011-07-14 14:23:03 +02:00
|
|
|
|
2007-04-18 16:21:24 +02:00
|
|
|
src = fetchurl {
|
2018-09-20 10:43:56 +02:00
|
|
|
url = "ftp://ftp.freedesktop.org/pub/mesa/demos/mesa-demos-${version}.tar.bz2";
|
|
|
|
sha256 = "0zgzbz55a14hz83gbmm0n9gpjnf5zadzi2kjjvkn6khql2a9rs81";
|
2007-04-18 16:21:24 +02:00
|
|
|
};
|
|
|
|
|
2018-03-17 17:57:15 +01:00
|
|
|
buildInputs = [ libX11 libGL ];
|
2007-04-18 16:21:24 +02:00
|
|
|
|
2019-06-19 17:36:06 +02:00
|
|
|
dontConfigure = true;
|
2011-07-14 14:23:03 +02:00
|
|
|
|
2007-04-18 16:21:24 +02:00
|
|
|
buildPhase = "
|
2018-09-20 11:46:42 +02:00
|
|
|
$CC src/xdemos/{glxinfo.c,glinfo_common.c} -o glxinfo -lGL -lX11
|
|
|
|
$CC src/xdemos/glxgears.c -o glxgears -lGL -lX11 -lm
|
|
|
|
$CC src/egl/opengles2/es2_info.c -o es2_info -lEGL -lGLESv2 -lX11
|
|
|
|
$CC src/egl/opengles2/es2gears.c src/egl/eglut/{eglut.c,eglut_x11.c} -o es2gears -Isrc/egl/eglut -lEGL -lGLESv2 -lX11 -lm
|
2020-04-02 16:22:10 +02:00
|
|
|
$CC src/egl/opengl/eglinfo.c -o eglinfo -lEGL -lGLESv2 -lX11
|
2007-04-18 16:21:24 +02:00
|
|
|
";
|
|
|
|
|
|
|
|
installPhase = "
|
2020-04-02 16:22:10 +02:00
|
|
|
install -Dm 555 -t $out/bin glx{info,gears} es2{_info,gears} eglinfo
|
2007-04-18 16:21:24 +02:00
|
|
|
";
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-03-17 17:57:15 +01:00
|
|
|
description = "Test utilities for OpenGL";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.mesa3d.org/";
|
2018-03-17 17:57:15 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2007-04-18 16:21:24 +02:00
|
|
|
}
|