tracy: 0.7 → 0.7.1

This commit is contained in:
Simonas Kazlauskas 2020-08-27 03:04:54 +03:00
parent 5622b6b6fe
commit 1a51de1f36
2 changed files with 15 additions and 5 deletions

View File

@ -9474,6 +9474,12 @@
github = "fzakaria";
githubId = 605070;
};
nagisa = {
name = "Simonas Kazlauskas";
email = "nixpkgs@kazlauskas.me";
github = "nagisa";
githubId = 679122;
};
yevhenshymotiuk = {
name = "Yevhen Shymotiuk";
email = "yevhenshymotiuk@gmail.com";

View File

@ -1,21 +1,21 @@
{ stdenv, lib, darwin, fetchFromGitHub, tbb, gtk2, glfw, pkgconfig, freetype, Carbon, AppKit, capstone }:
{ stdenv, lib, darwin, fetchFromGitHub, tbb, gtk3, glfw, pkgconfig, freetype, Carbon, AppKit, capstone }:
stdenv.mkDerivation rec {
pname = "tracy";
version = "0.7";
version = "0.7.1";
src = fetchFromGitHub {
owner = "wolfpld";
repo = "tracy";
rev = "v${version}";
sha256 = "07cmz2w7iv10f9i9q3fhg80s6riy9bxnk9xvc3q4lw47mc150skp";
sha256 = "13zg3ijzhh7qkhgqff2ca23nd4gj7ac8jr0bp9w1gjf2cpgqkm40";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glfw capstone ]
++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ]
++ lib.optionals stdenv.isLinux [ gtk2 tbb ];
++ lib.optionals stdenv.isLinux [ gtk3 tbb ];
NIX_CFLAGS_COMPILE = [ ]
++ lib.optional stdenv.isLinux "-ltbb"
@ -35,11 +35,15 @@ stdenv.mkDerivation rec {
install -D ./update/build/unix/update-release $out/bin/update
'';
fixupPhase = lib.optionalString stdenv.isDarwin ''
install_name_tool -change libcapstone.4.dylib ${capstone}/lib/libcapstone.4.dylib $out/bin/Tracy
'';
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 ];
maintainers = with maintainers; [ mpickering nagisa ];
};
}