nixpkgs/pkgs/development/tools/vogl/default.nix

48 lines
1.1 KiB
Nix
Raw Normal View History

2017-05-17 21:26:11 +02:00
{ mkDerivation, lib, fetchFromGitHub
2017-03-17 21:03:33 +01:00
, cmake, git, pkgconfig, wget, zip
2017-05-17 21:26:11 +02:00
, qtbase, qtx11extras
2017-03-17 21:03:33 +01:00
, libdwarf, libjpeg_turbo, libunwind, lzma, tinyxml, libX11
, SDL2, SDL2_gfx, SDL2_image, SDL2_ttf
, freeglut, mesa_glu
2017-03-17 21:03:33 +01:00
}:
2017-05-17 21:26:11 +02:00
mkDerivation rec {
2017-03-17 21:03:33 +01:00
name = "vogl-${version}";
version = "2016-05-13";
src = fetchFromGitHub {
owner = "deepfire";
repo = "vogl";
rev = "cbc5f1853e294b363f16c4e00b3e0c49dbf74559";
sha256 = "17gwd73x3lnqv6ccqs48pzqwbzjhbn41c0x0l5zzirhiirb3yh0n";
};
2017-05-17 21:26:11 +02:00
nativeBuildInputs = [ cmake pkgconfig ];
2017-03-17 21:03:33 +01:00
buildInputs = [
git wget zip
qtbase qtx11extras
libdwarf libjpeg_turbo libunwind lzma tinyxml libX11
SDL2 SDL2_gfx SDL2_image SDL2_ttf
freeglut mesa_glu
2017-03-17 21:03:33 +01:00
];
dontUseCmakeBuildDir = true;
preConfigure = ''
cmakeDir=$PWD
mkdir -p vogl/vogl_build/release64 && cd $_
'';
2017-05-17 21:26:11 +02:00
cmakeFlags = [
"-DCMAKE_VERBOSE=On"
"-DBUILD_X64=On"
];
2017-03-17 21:03:33 +01:00
2017-05-17 21:26:11 +02:00
meta = with lib; {
2017-03-17 21:03:33 +01:00
description = "OpenGL capture / playback debugger.";
homepage = https://github.com/ValveSoftware/vogl;
license = licenses.mit;
maintainers = [ maintainers.deepfire ];
platforms = [ "x86_64-linux" "i686-linux" ];
};
}