summary refs log tree commit diff
path: root/pkgs/applications/graphics/apitrace/default.nix
blob: 8e546652f852a6512f18098507851ff124a33896 (plain) (blame)
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, python, libX11, qt4 }:

let version = "6.1"; in
stdenv.mkDerivation {
  name = "apitrace-${version}";

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

  buildInputs = [ python libX11 qt4 ];
  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 ];
  };
}