summary refs log tree commit diff
path: root/pkgs/development/tools/vogl/default.nix
blob: 56f15d62154c418bd5dffbbf7d3d46ebd6f7fbc9 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ fetchFromGitHub, stdenv
, cmake, git, pkgconfig, wget, zip
, makeQtWrapper, qtbase, qtx11extras
, libdwarf, libjpeg_turbo, libunwind, lzma, tinyxml, libX11
, SDL2, SDL2_gfx, SDL2_image, SDL2_ttf
, freeglut, mesa_glu
}:
stdenv.mkDerivation rec {
  name = "vogl-${version}";
  version = "2016-05-13";

  src = fetchFromGitHub {
    owner  = "deepfire";
    repo   = "vogl";
    rev    = "cbc5f1853e294b363f16c4e00b3e0c49dbf74559";
    sha256 = "17gwd73x3lnqv6ccqs48pzqwbzjhbn41c0x0l5zzirhiirb3yh0n";
  };

  nativeBuildInputs = [
    cmake makeQtWrapper pkgconfig
  ];

  buildInputs = [
    git wget zip
    qtbase qtx11extras
    libdwarf libjpeg_turbo libunwind lzma tinyxml libX11
    SDL2 SDL2_gfx SDL2_image SDL2_ttf
    freeglut mesa_glu
  ];

  enableParallelBuilding = true;

  dontUseCmakeBuildDir = true;
  preConfigure = ''
    cmakeDir=$PWD
    mkdir -p vogl/vogl_build/release64 && cd $_
  '';
  cmakeFlags = '' -DCMAKE_VERBOSE=On -DCMAKE_BUILD_TYPE=Release -DBUILD_X64=On'';

  meta = with stdenv.lib; {
    description = "OpenGL capture / playback debugger.";
    homepage = https://github.com/ValveSoftware/vogl;
    license = licenses.mit;
    maintainers = [ maintainers.deepfire ];
    platforms = [ "x86_64-linux" "i686-linux" ];
  };
}