nixpkgs/pkgs/applications/graphics/apitrace/default.nix

27 lines
862 B
Nix
Raw Normal View History

2016-11-09 10:09:51 +00:00
{ stdenv, fetchFromGitHub, cmake, libX11, procps, python2, libdwarf, qtbase, qtwebkit }:
2014-12-14 15:41:04 +00:00
stdenv.mkDerivation rec {
pname = "apitrace";
version = "7.1-572-g${builtins.substring 0 8 src.rev}";
2014-12-14 15:41:04 +00:00
2015-04-16 12:04:08 +00:00
src = fetchFromGitHub {
sha256 = "11bwb0l8cr1bf9bj1s6cbmi77d5fy4qrphj9cgmcd8jpa862anp5";
rev = "26966134f15d28f6b4a9a0a560017b3ba36d60bf";
2015-04-16 12:04:08 +00:00
repo = "apitrace";
owner = "apitrace";
2014-12-14 15:41:04 +00:00
};
# LD_PRELOAD wrappers need to be statically linked to work against all kinds
# of games -- so it's fine to use e.g. bundled snappy.
2016-11-09 10:09:51 +00:00
buildInputs = [ libX11 procps python2 libdwarf qtbase qtwebkit ];
2014-12-14 15:41:04 +00:00
nativeBuildInputs = [ cmake ];
2014-12-14 15:41:04 +00:00
meta = with stdenv.lib; {
homepage = https://apitrace.github.io;
2015-04-16 12:04:08 +00:00
description = "Tools to trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs";
license = licenses.mit;
2014-12-14 15:41:04 +00:00
platforms = platforms.linux;
};
}