|
|
|
@ -1,23 +1,25 @@ |
|
|
|
|
{ stdenv, lib, darwin, fetchFromGitHub, tbb, gtk3, glfw, pkg-config, freetype, Carbon, AppKit, capstone }: |
|
|
|
|
{ stdenv, lib, darwin, fetchFromGitHub |
|
|
|
|
, tbb, gtk3, glfw, pkg-config, freetype, Carbon, AppKit, capstone, dbus |
|
|
|
|
}: |
|
|
|
|
|
|
|
|
|
let |
|
|
|
|
disableLTO = stdenv.cc.isClang && stdenv.isDarwin; # workaround issue #19098 |
|
|
|
|
in stdenv.mkDerivation rec { |
|
|
|
|
pname = "tracy"; |
|
|
|
|
version = "0.8"; |
|
|
|
|
version = "0.8.1"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "wolfpld"; |
|
|
|
|
repo = "tracy"; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "sha256-wsb2pOF8Y+cFHHSkDSJngTyWeLKCtFNK/mm+usyo+0k="; |
|
|
|
|
sha256 = "sha256-4z3tos/sQUCL5UAcvqHzIzwoxo1fCGldNpmKsCXKJDs="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config ]; |
|
|
|
|
|
|
|
|
|
buildInputs = [ glfw capstone ] |
|
|
|
|
++ lib.optionals stdenv.isDarwin [ Carbon AppKit freetype ] |
|
|
|
|
++ lib.optionals stdenv.isLinux [ gtk3 tbb ]; |
|
|
|
|
++ lib.optionals stdenv.isLinux [ gtk3 tbb dbus ]; |
|
|
|
|
|
|
|
|
|
NIX_CFLAGS_COMPILE = [ ] |
|
|
|
|
# Apple's compiler finds a format string security error on |
|
|
|
|