depot/third_party/nixpkgs/pkgs/development/tools/misc/pahole/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

26 lines
723 B
Nix

{ lib, 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 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 ];
};
}