2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, fetchgit, cmake, elfutils, zlib }:
|
2015-07-11 12:11:14 +01:00
|
|
|
|
2018-09-19 23:28:05 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-06-28 00:54:27 +01:00
|
|
|
pname = "pahole";
|
2021-03-17 06:42:04 +00:00
|
|
|
version = "1.20";
|
2015-07-11 12:11:14 +01:00
|
|
|
src = fetchgit {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git";
|
2018-09-19 23:28:05 +01:00
|
|
|
rev = "v${version}";
|
2021-03-17 06:42:04 +00:00
|
|
|
sha256 = "11q9dpfi4qj2v8z0nlf8c0079mlv10ljhh0d1yr0j4ds3saacd15";
|
|
|
|
fetchSubmodules = true;
|
2015-07-11 12:11:14 +01:00
|
|
|
};
|
|
|
|
|
2018-09-19 23:28:05 +01:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ elfutils zlib ];
|
|
|
|
|
|
|
|
# Put libraries in "lib" subdirectory, not top level of $out
|
|
|
|
cmakeFlags = [ "-D__LIB=lib" ];
|
2015-07-11 12:11:14 +01:00
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://git.kernel.org/cgit/devel/pahole/pahole.git/";
|
2015-07-11 12:11:14 +01:00
|
|
|
description = "Pahole and other DWARF utils";
|
2021-03-17 06:42:04 +00:00
|
|
|
license = licenses.gpl2Only;
|
2015-07-11 12:11:14 +01:00
|
|
|
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.bosu ];
|
|
|
|
};
|
|
|
|
}
|