mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
Merge pull request #46943 from lheckemann/glxinfo-bump
glxinfo: 8.3.0 -> 8.4.0
This commit is contained in:
commit
22f97f4dcf
1 changed files with 8 additions and 8 deletions
|
@ -2,11 +2,11 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "glxinfo-${version}";
|
||||
version = "8.3.0";
|
||||
version = "8.4.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "ftp://ftp.freedesktop.org/pub/mesa/demos/${version}/mesa-demos-${version}.tar.bz2";
|
||||
sha256 = "1vqb7s5m3fcg2csbiz45mha1pys2xx6rhw94fcyvapqdpm5iawy1";
|
||||
url = "ftp://ftp.freedesktop.org/pub/mesa/demos/mesa-demos-${version}.tar.bz2";
|
||||
sha256 = "0zgzbz55a14hz83gbmm0n9gpjnf5zadzi2kjjvkn6khql2a9rs81";
|
||||
};
|
||||
|
||||
buildInputs = [ libX11 libGL ];
|
||||
|
@ -14,14 +14,14 @@ stdenv.mkDerivation rec {
|
|||
configurePhase = "true";
|
||||
|
||||
buildPhase = "
|
||||
cd src/xdemos
|
||||
$CC glxinfo.c glinfo_common.c -o glxinfo -lGL -lX11
|
||||
$CC glxgears.c -o glxgears -lGL -lX11 -lm
|
||||
$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
|
||||
";
|
||||
|
||||
installPhase = "
|
||||
mkdir -p $out/bin
|
||||
cp glxinfo glxgears $out/bin/
|
||||
install -Dm 555 -t $out/bin glx{info,gears} es2{_info,gears}
|
||||
";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
|
Loading…
Reference in a new issue