3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #96416 from nagisa/tracy071

tracy: 0.7 → 0.7.1
This commit is contained in:
Robert Scott 2020-08-31 23:07:18 +01:00 committed by GitHub
commit abfafe8681
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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 ];
};
}