0ae1623ea3
1.22 merged the EMBEDDED_LIBBPF patch back
26 lines
804 B
Nix
26 lines
804 B
Nix
{ lib, stdenv, fetchgit, pkg-config, libbpf, cmake, elfutils, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pahole";
|
|
version = "1.22";
|
|
src = fetchgit {
|
|
url = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-U1/i9WNlLphPIcNysC476sqil/q9tMYmu+Y6psga8I0=";
|
|
};
|
|
|
|
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" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://git.kernel.org/cgit/devel/pahole/pahole.git/";
|
|
description = "Pahole and other DWARF utils";
|
|
license = licenses.gpl2Only;
|
|
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ bosu martinetd ];
|
|
};
|
|
}
|