2015-07-11 13:11:14 +02:00
|
|
|
{ stdenv, fetchgit, cmake, elfutils, zlib }:
|
|
|
|
|
2018-09-20 00:28:05 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-06-28 01:54:27 +02:00
|
|
|
pname = "pahole";
|
|
|
|
version = "1.15";
|
2015-07-11 13:11:14 +02:00
|
|
|
src = fetchgit {
|
|
|
|
url = https://git.kernel.org/pub/scm/devel/pahole/pahole.git;
|
2018-09-20 00:28:05 +02:00
|
|
|
rev = "v${version}";
|
2019-06-28 01:54:27 +02:00
|
|
|
sha256 = "10af9mh3qxbx0hgjcmh0vjbg22bgxzhbpd9395ymasyw4npg6l9x";
|
2015-07-11 13:11:14 +02:00
|
|
|
};
|
|
|
|
|
2018-09-20 00:28:05 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ elfutils zlib ];
|
|
|
|
|
|
|
|
# Put libraries in "lib" subdirectory, not top level of $out
|
|
|
|
cmakeFlags = [ "-D__LIB=lib" ];
|
2015-07-11 13:11:14 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://git.kernel.org/cgit/devel/pahole/pahole.git/;
|
|
|
|
description = "Pahole and other DWARF utils";
|
|
|
|
license = licenses.gpl2;
|
|
|
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bosu ];
|
|
|
|
};
|
|
|
|
}
|