9 stdenv.mkDerivation rec {
13 src = fetchFromGitHub {
14 owner = "plasma-umass";
17 sha256 = "0val36yw987b1558iiyk3nqg0yy5k9y5wh49v91zj3cs58mmfyhc";
21 sed -i -e '/pid_t gettid/,+2d' libcoz/ccutil/thread.h
25 # This is currently hard-coded. Will be fixed in the next release.
26 sed -e "s|/usr/lib/|$out/lib/|" -i ./coz
32 python3Packages.wrapPython
37 (python3.withPackages (p: [ p.docutils ]))
41 mkdir -p $out/share/man/man1
42 make install prefix=$out
44 # fix executable includes
45 chmod -x $out/include/coz.h
51 homepage = "https://github.com/plasma-umass/coz";
52 description = "Profiler based on casual profiling";
54 license = lib.licenses.bsd2;
55 maintainers = with lib.maintainers; [ zimbatm ];