Merge pull request #125981 from musfay/glmark2
glmark2: 2017-09-01 -> 2021.02
This commit is contained in:
commit
1ff2de3b13
1 changed files with 41 additions and 9 deletions
|
@ -1,23 +1,55 @@
|
|||
{ lib, stdenv, fetchFromGitHub, pkg-config, libjpeg, libpng, xorg, libX11, libGL, libdrm,
|
||||
python27, wayland, udev, mesa, wafHook }:
|
||||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, libjpeg
|
||||
, libpng
|
||||
, xorg
|
||||
, libX11
|
||||
, libGL
|
||||
, libdrm
|
||||
, udev
|
||||
, python3
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, mesa
|
||||
, wafHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "glmark2";
|
||||
version = "2017-09-01";
|
||||
version = "2021.02";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "glmark2";
|
||||
repo = "glmark2";
|
||||
rev = "7265e8e6c77c4f60302507eca0e18560b1117a86";
|
||||
sha256 = "076l75rfl6pnp1wgiwlaihy1vg2advg1z8bi0x84kk259kldgvwn";
|
||||
rev = version;
|
||||
sha256 = "1a75gg1dn03d3jq7n74wsw7kc14ildbb8azzbj4k28xik1m6khr9";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config wafHook ];
|
||||
nativeBuildInputs = [ pkg-config wafHook makeWrapper ];
|
||||
buildInputs = [
|
||||
libjpeg libpng xorg.libxcb libX11 libGL libdrm python27 wayland udev mesa
|
||||
libjpeg
|
||||
libpng
|
||||
xorg.libxcb
|
||||
libX11
|
||||
libdrm
|
||||
python3
|
||||
udev
|
||||
wayland
|
||||
wayland-protocols
|
||||
mesa
|
||||
];
|
||||
|
||||
wafConfigureFlags = ["--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2"];
|
||||
wafConfigureFlags = [ "--with-flavors=x11-gl,x11-glesv2,drm-gl,drm-glesv2,wayland-gl,wayland-glesv2" ];
|
||||
|
||||
postInstall = ''
|
||||
for binary in $out/bin/glmark2*; do
|
||||
wrapProgram $binary \
|
||||
--set LD_LIBRARY_PATH ${libGL}/lib
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "OpenGL (ES) 2.0 benchmark";
|
||||
|
|
Loading…
Reference in a new issue