nixpkgs/pkgs/tools/graphics/glmark2/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

65 lines
1.3 KiB
Nix
Raw Normal View History

2021-06-06 18:23:23 +01:00
{ lib
, stdenv
, fetchFromGitHub
, pkg-config
, makeWrapper
, meson
, ninja
2023-02-26 23:07:22 +00:00
, wayland-scanner
2021-06-06 18:23:23 +01:00
, libjpeg
, libpng
, libX11
, libGL
, libdrm
, udev
, wayland
, wayland-protocols
, mesa
}:
2021-06-06 18:23:23 +01:00
stdenv.mkDerivation rec {
pname = "glmark2";
2023-01-31 22:26:39 +00:00
version = "2023.01";
2014-07-12 09:04:28 +01:00
src = fetchFromGitHub {
owner = "glmark2";
repo = "glmark2";
2021-06-06 18:23:23 +01:00
rev = version;
2023-01-31 22:26:39 +00:00
sha256 = "sha256-WCvc5GqrAdpIKQ4LVqwO6ZGbzBgLCl49NxiGJynIjSQ=";
2014-07-12 09:04:28 +01:00
};
2023-02-26 23:07:22 +00:00
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ pkg-config makeWrapper meson ninja wayland-scanner ];
2014-07-12 09:04:28 +01:00
buildInputs = [
2021-06-06 18:23:23 +01:00
libjpeg
libpng
libX11
libdrm
udev
wayland
wayland-protocols
mesa
2014-07-12 09:04:28 +01:00
];
2023-02-26 23:11:16 +00:00
mesonFlags = [ "-Dflavors=drm-gl,drm-glesv2,gbm-gl,gbm-glesv2,wayland-gl,wayland-glesv2,x11-gl,x11-gl-egl,x11-glesv2" ];
2021-06-06 18:23:23 +01:00
postInstall = ''
for binary in $out/bin/glmark2*; do
wrapProgram $binary \
--set LD_LIBRARY_PATH ${libGL}/lib
done
'';
2014-07-12 09:04:28 +01:00
meta = with lib; {
2014-07-12 09:04:28 +01:00
description = "OpenGL (ES) 2.0 benchmark";
homepage = "https://github.com/glmark2/glmark2";
2014-08-12 19:58:36 +01:00
license = licenses.gpl3Plus;
2014-07-12 09:04:28 +01:00
longDescription = ''
glmark2 is a benchmark for OpenGL (ES) 2.0. It uses only the subset of
the OpenGL 2.0 API that is compatible with OpenGL ES 2.0.
'';
2014-08-12 19:58:36 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.wmertens ];
2014-07-12 09:04:28 +01:00
};
}