From e03b99c309565afe2fb090a1f5986e2c5fc95a5e Mon Sep 17 00:00:00 2001 From: Linus Heckemann Date: Thu, 20 Sep 2018 10:46:42 +0100 Subject: [PATCH] glxinfo: add es2gears, es2_info --- pkgs/tools/graphics/glxinfo/default.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/graphics/glxinfo/default.nix b/pkgs/tools/graphics/glxinfo/default.nix index 7e4d95045a79..6a2a3a5a46e8 100644 --- a/pkgs/tools/graphics/glxinfo/default.nix +++ b/pkgs/tools/graphics/glxinfo/default.nix @@ -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; {