Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pyflame: also install flame-chart-json

This is useful to use chrome's flamechart viewer.

+11 -3
+11 -3
pkgs/development/tools/profiling/pyflame/default.nix
··· 1 1 { stdenv, fetchFromGitHub, autoreconfHook, coreutils, pkgconfig 2 2 # pyflame needs one python version per ABI 3 - # are currently supported 3 + # are currently supported 4 4 # * 2.6 or 2.7 for 2.x ABI 5 5 # * 3.4 or 3.5 for 3.{4,5} ABI 6 6 # * 3.6 for 3.6+ ABI 7 7 # if you want to disable support for some ABI, make the corresponding argument null 8 - , python2, python35, python36 8 + , python2, python35, python36, python3 9 9 }: 10 10 stdenv.mkDerivation rec { 11 11 pname = "pyflame"; 12 - version = "1.6.7"; 12 + version = "1.6.7"; 13 13 src = fetchFromGitHub { 14 14 owner = "uber"; 15 15 repo = "pyflame"; ··· 25 25 # some tests will fail in the sandbox 26 26 substituteInPlace tests/test_end_to_end.py \ 27 27 --replace 'skipif(IS_DOCKER' 'skipif(True' 28 + 29 + # don't use patchShebangs here to be explicit about the python version 30 + substituteInPlace utils/flame-chart-json \ 31 + --replace '#!usr/bin/env python' '#!${python3.interpreter}' 32 + ''; 33 + 34 + postInstall = '' 35 + install -D utils/flame-chart-json $out/bin/flame-chart-json 28 36 ''; 29 37 30 38 doCheck = true;