at 18.09-beta 38 lines 1.2 kB view raw
1{stdenv, fetchFromGitHub, cmake, pkgconfig, zlib, curl, elfutils, python, libiberty, libopcodes}: 2 3stdenv.mkDerivation rec { 4 name = "kcov-${version}"; 5 version = "36"; 6 7 src = fetchFromGitHub { 8 owner = "SimonKagstrom"; 9 repo = "kcov"; 10 rev = "v${version}"; 11 sha256 = "1q1mw5mxz041lr6qc2v4280rmx13pg1bx5r3bxz9bzs941r405r3"; 12 }; 13 14 preConfigure = "patchShebangs src/bin-to-c-source.py"; 15 nativeBuildInputs = [ cmake pkgconfig ]; 16 17 buildInputs = [ zlib curl elfutils python libiberty libopcodes ]; 18 19 enableParallelBuilding = true; 20 21 meta = with stdenv.lib; { 22 description = "Code coverage tester for compiled programs, Python scripts and shell scripts"; 23 24 longDescription = '' 25 Kcov is a code coverage tester for compiled programs, Python 26 scripts and shell scripts. It allows collecting code coverage 27 information from executables without special command-line 28 arguments, and continuosly produces output from long-running 29 applications. 30 ''; 31 32 homepage = http://simonkagstrom.github.io/kcov/index.html; 33 license = licenses.gpl2; 34 35 maintainers = with maintainers; [ gal_bolle ekleog ]; 36 platforms = platforms.linux; 37 }; 38}