mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
1156b4d1e9
Also: - make fetchSubodules explicit, it is strictly required by pahole build system until debian efforts to use system libbpf finish: see https://www.spinics.net/lists/dwarves/msg00732.html - fix license to gpl2Only as requested by review bot
28 lines
755 B
Nix
28 lines
755 B
Nix
{ lib, stdenv, fetchgit, cmake, elfutils, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pahole";
|
|
version = "1.20";
|
|
src = fetchgit {
|
|
url = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git";
|
|
rev = "v${version}";
|
|
sha256 = "11q9dpfi4qj2v8z0nlf8c0079mlv10ljhh0d1yr0j4ds3saacd15";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ elfutils zlib ];
|
|
|
|
# Put libraries in "lib" subdirectory, not top level of $out
|
|
cmakeFlags = [ "-D__LIB=lib" ];
|
|
|
|
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 = [ maintainers.bosu ];
|
|
};
|
|
}
|