commit
abfafe8681
@ -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 {
|
stdenv.mkDerivation rec {
|
||||||
pname = "tracy";
|
pname = "tracy";
|
||||||
version = "0.7";
|
version = "0.7.1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "wolfpld";
|
owner = "wolfpld";
|
||||||
repo = "tracy";
|
repo = "tracy";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "07cmz2w7iv10f9i9q3fhg80s6riy9bxnk9xvc3q4lw47mc150skp";
|
sha256 = "13zg3ijzhh7qkhgqff2ca23nd4gj7ac8jr0bp9w1gjf2cpgqkm40";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ pkgconfig ];
|
||||||
|
|
||||||
buildInputs = [ glfw capstone ]
|
buildInputs = [ glfw capstone ]
|
||||||
++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ]
|
++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ]
|
||||||
++ lib.optionals stdenv.isLinux [ gtk2 tbb ];
|
++ lib.optionals stdenv.isLinux [ gtk3 tbb ];
|
||||||
|
|
||||||
NIX_CFLAGS_COMPILE = [ ]
|
NIX_CFLAGS_COMPILE = [ ]
|
||||||
++ lib.optional stdenv.isLinux "-ltbb"
|
++ lib.optional stdenv.isLinux "-ltbb"
|
||||||
@ -35,11 +35,15 @@ stdenv.mkDerivation rec {
|
|||||||
install -D ./update/build/unix/update-release $out/bin/update
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "A real time, nanosecond resolution, remote telemetry frame profiler for games and other applications.";
|
description = "A real time, nanosecond resolution, remote telemetry frame profiler for games and other applications.";
|
||||||
homepage = "https://github.com/wolfpld/tracy";
|
homepage = "https://github.com/wolfpld/tracy";
|
||||||
platforms = platforms.linux ++ platforms.darwin;
|
platforms = platforms.linux ++ platforms.darwin;
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ mpickering ];
|
maintainers = with maintainers; [ mpickering nagisa ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user