nixpkgs-suyu/pkgs/development/tools/misc/pahole/default.nix

27 lines
804 B
Nix
Raw Normal View History

{ lib, stdenv, fetchgit, pkg-config, libbpf, cmake, elfutils, zlib }:
2015-07-11 13:11:14 +02:00
stdenv.mkDerivation rec {
2019-06-28 01:54:27 +02:00
pname = "pahole";
2021-12-04 00:54:26 +01:00
version = "1.22";
2015-07-11 13:11:14 +02:00
src = fetchgit {
url = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git";
rev = "v${version}";
2021-12-04 00:54:26 +01:00
sha256 = "sha256-U1/i9WNlLphPIcNysC476sqil/q9tMYmu+Y6psga8I0=";
2015-07-11 13:11:14 +02:00
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ elfutils zlib libbpf ];
# Put libraries in "lib" subdirectory, not top level of $out
cmakeFlags = [ "-D__LIB=lib" "-DLIBBPF_EMBEDDED=OFF" ];
2015-07-11 13:11:14 +02:00
meta = with lib; {
homepage = "https://git.kernel.org/cgit/devel/pahole/pahole.git/";
2015-07-11 13:11:14 +02:00
description = "Pahole and other DWARF utils";
license = licenses.gpl2Only;
2015-07-11 13:11:14 +02:00
platforms = platforms.linux;
maintainers = with maintainers; [ bosu martinetd ];
2015-07-11 13:11:14 +02:00
};
}