nixpkgs-suyu/pkgs/development/tools/misc/pahole/default.nix
Dominique Martinet 0ae1623ea3 pahole: remove submodule
1.22 merged the EMBEDDED_LIBBPF patch back
2021-12-04 21:12:07 +09:00

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 ];
};
}