uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
65
pkgs/tools/graphics/glmark2/default.nix
Normal file
65
pkgs/tools/graphics/glmark2/default.nix
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkg-config
|
||||
, makeWrapper
|
||||
, libjpeg
|
||||
, libpng
|
||||
, xorg
|
||||
, libX11
|
||||
, libGL
|
||||
, libdrm
|
||||
, udev
|
||||
, python3
|
||||
, wayland
|
||||
, wayland-protocols
|
||||
, mesa
|
||||
, wafHook
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "glmark2";
|
||||
version = "2021.12";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "glmark2";
|
||||
repo = "glmark2";
|
||||
rev = version;
|
||||
sha256 = "sha256-S6KkazkG+kdx02MPwrYvCFWSOtM6t5xT0OTE9PLCzas=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config wafHook makeWrapper ];
|
||||
buildInputs = [
|
||||
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" ];
|
||||
|
||||
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";
|
||||
homepage = "https://github.com/glmark2/glmark2";
|
||||
license = licenses.gpl3Plus;
|
||||
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.
|
||||
'';
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.wmertens ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue