diff options
author | Katharina Fey <kookie@spacekookie.de> | 2019-10-18 16:32:00 +0000 |
---|---|---|
committer | Katharina Fey <kookie@spacekookie.de> | 2019-10-18 16:32:00 +0000 |
commit | 0f74f62ee25ac2d21bd67c29b8efc3ad079a72a8 (patch) | |
tree | bd701e982d896952f4291e4b795c85bb581593b8 /nixpkgs/pkgs/development/tools/analysis/coz | |
parent | dae1ae41b3a575e87d411e0cd9daa42a85c5aa89 (diff) | |
parent | 1c40ee6fc44f7eb474c69ea070a43247a1a2c83c (diff) |
Merge commit '1c40ee6fc44f7eb474c69ea070a43247a1a2c83c'
Diffstat (limited to 'nixpkgs/pkgs/development/tools/analysis/coz')
-rw-r--r-- | nixpkgs/pkgs/development/tools/analysis/coz/default.nix | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/tools/analysis/coz/default.nix b/nixpkgs/pkgs/development/tools/analysis/coz/default.nix new file mode 100644 index 00000000000..1ef3457e8e9 --- /dev/null +++ b/nixpkgs/pkgs/development/tools/analysis/coz/default.nix @@ -0,0 +1,52 @@ +{ stdenv +, fetchFromGitHub +, libelfin +, ncurses +, python3 +, makeWrapper +}: +stdenv.mkDerivation rec { + pname = "coz"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "plasma-umass"; + repo = "coz"; + rev = version; + sha256 = "0a55q3s8ih1r9x6fp7wkg3n5h1yd9pcwg74k33d1r94y3j3m0znr"; + }; + + postConfigure = '' + # This is currently hard-coded. Will be fixed in the next release. + sed -e "s|/usr/lib/|$out/lib/|" -i ./coz + ''; + + nativeBuildInputs = [ + ncurses + makeWrapper + ]; + + buildInputs = [ + libelfin + (python3.withPackages (p: [ p.docutils ])) + ]; + + installPhase = '' + mkdir -p $out/share/man/man1 + make install prefix=$out + + # fix executable includes + chmod -x $out/include/coz.h + + # make sure that PYTHONPATH doesn't leak from the environment + wrapProgram $out/bin/coz \ + --unset PYTHONPATH + ''; + + meta = { + homepage = "https://github.com/plasma-umass/coz"; + description = "Coz: Causal Profiling"; + license = stdenv.lib.licenses.bsd2; + maintainers = with stdenv.lib.maintainers; [ zimbatm ]; + }; +} |