aboutsummaryrefslogtreecommitdiff
path: root/pkgs/applications/graphics/apitrace/default.nix
blob: f54628e0b8dedd22b29ad9df5e1cea66b4df8f9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, fetchFromGitHub, cmake, libX11, procps, python, qtbase }:

stdenv.mkDerivation rec {
  name = "apitrace-${version}";
  version = "7.1";

  src = fetchFromGitHub {
    sha256 = "1n2gmsjnpyam7isg7n1ksggyh6y1l8drvx0a93bnvbcskr7jiz9a";
    rev = version;
    repo = "apitrace";
    owner = "apitrace";
  };

  buildInputs = [ libX11 procps python qtbase ];
  nativeBuildInputs = [ cmake ];

  buildPhase = ''
    cmake
    make
  '';

  meta = with stdenv.lib; {
    homepage = https://apitrace.github.io;
    description = "Tools to trace OpenGL, OpenGL ES, Direct3D, and DirectDraw APIs";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ nckx ];
  };
}