mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 21:17:46 +00:00
27 lines
725 B
Nix
27 lines
725 B
Nix
{ stdenv, fetchgit, cmake, elfutils, zlib }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "pahole";
|
|
version = "1.17";
|
|
src = fetchgit {
|
|
url = "https://git.kernel.org/pub/scm/devel/pahole/pahole.git";
|
|
rev = "v${version}";
|
|
sha256 = "13dxsmhpf9n2wqggf4gd6f12rm0vhv0q96jd50gkvaxzzvgpzzbc";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ elfutils zlib ];
|
|
|
|
# Put libraries in "lib" subdirectory, not top level of $out
|
|
cmakeFlags = [ "-D__LIB=lib" ];
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = "https://git.kernel.org/cgit/devel/pahole/pahole.git/";
|
|
description = "Pahole and other DWARF utils";
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
maintainers = [ maintainers.bosu ];
|
|
};
|
|
}
|