Skip to content

Commit

Permalink
tracy: init at 0.6.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering committed Jun 3, 2020
1 parent 135073a commit 9154d11
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/development/tools/tracy/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ stdenv, lib, darwin, fetchFromGitHub, tbb, gtk2, glfw, pkgconfig, freetype}:
stdenv.mkDerivation rec {
name = "tracy-${version}";
version = "0.6.3";

nativeBuildInputs = [ pkgconfig ];
buildInputs =
[glfw]
++ lib.optionals stdenv.isDarwin [darwin.apple_sdk.frameworks.Carbon
darwin.apple_sdk.frameworks.AppKit
freetype ]
++ lib.optionals stdenv.isLinux [gtk2 tbb];

CFLAGS = lib.optionalString stdenv.isLinux "-ltbb"
+ lib.optionalString stdenv.cc.isClang "-faligned-allocation";
buildPhase = ''
make -C profiler/build/unix/ CFLAGS="$CFLAGS" release
make -C import-chrome/build/unix/ CFLAGS="$CFLAGS" release
'';

installPhase = ''
install -D ./profiler/build/unix/Tracy-release $out/bin/Tracy
install -D ./import-chrome/build/unix/import-chrome-release $out/bin/import-chrome
'';
src = fetchFromGitHub {
owner = "wolfpld";
repo = "tracy";
rev = "v${version}";
sha256 = "0pgq8h5gq141zq1k4cgj6cp74kh4zqbp7h4wh29q4grjb04yy06i";
};
meta = with stdenv.lib; {
description = "A real time, nanosecond resolution, remote telemetry frame profiler for games and other applications.";
homepage = "https://github.com/wolfpld/tracy";
platforms = platforms.linux ++ platforms.darwin;
license = licenses.bsd3;
maintainers = with maintainers; [ mpickering ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3140,6 +3140,8 @@ in

tracker-miners = callPackage ../development/libraries/tracker-miners { };

tracy = callPackage ../development/tools/tracy { };

tridactyl-native = callPackage ../tools/networking/tridactyl-native { };

trompeloeil = callPackage ../development/libraries/trompeloeil { };
Expand Down

0 comments on commit 9154d11

Please sign in to comment.