nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 64 lines 1.8 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 libunwind, 6 cmake, 7 pcre, 8 gdb, 9}: 10 11stdenv.mkDerivation (finalAttrs: { 12 version = "5.9.18"; 13 pname = "igprof"; 14 15 src = fetchFromGitHub { 16 owner = "igprof"; 17 repo = "igprof"; 18 rev = "v${finalAttrs.version}"; 19 sha256 = "sha256-UTrAaH8C79km78Z/7NxvQ6dnl4u4Ki80nORf4bsoSNw="; 20 }; 21 22 postPatch = '' 23 substituteInPlace src/igprof \ 24 --replace-fail libigprof.so $out/lib/libigprof.so 25 substituteInPlace CMakeLists.txt \ 26 --replace-fail "CMAKE_MINIMUM_REQUIRED(VERSION 2.6)" "CMAKE_MINIMUM_REQUIRED(VERSION 3.10)" 27 ''; 28 29 buildInputs = [ 30 libunwind 31 gdb 32 pcre 33 ]; 34 nativeBuildInputs = [ cmake ]; 35 CXXFLAGS = [ 36 "-fPIC" 37 "-O2" 38 "-w" 39 "-fpermissive" 40 ]; 41 42 meta = { 43 broken = (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64); 44 description = "Ignominous Profiler"; 45 46 longDescription = '' 47 IgProf is a fast and light weight profiler. It correctly handles 48 dynamically loaded shared libraries, threads and sub-processes started by 49 the application. We have used it routinely with large C++ applications 50 consisting of many hundreds of shared libraries and thousands of symbols 51 from millions of source lines of code. It requires no special privileges 52 to run. The performance reports provide full navigable call stacks and 53 can be customised by applying filters. Results from any number of 54 profiling runs can be included. This means you can both dig into the 55 details and see the big picture from combined workloads. 56 ''; 57 58 license = lib.licenses.gpl2; 59 60 homepage = "https://igprof.org/"; 61 platforms = lib.platforms.linux; 62 maintainers = with lib.maintainers; [ ktf ]; 63 }; 64})