nixpkgs/pkgs/development/tools/misc/pahole/default.nix

27 lines
731 B
Nix
Raw Normal View History

2015-07-11 11:11:14 +00:00
{ stdenv, fetchgit, cmake, elfutils, zlib }:
stdenv.mkDerivation rec {
name = "pahole-${version}";
version = "1.12";
2015-07-11 11:11:14 +00:00
src = fetchgit {
url = https://git.kernel.org/pub/scm/devel/pahole/pahole.git;
sha256 = "1a8xfwqdc2j3ydh9bk2pkvsaf3lrkbxj66vj991c7knc31ix8kpw";
rev = "v${version}";
2015-07-11 11:11:14 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ elfutils zlib ];
# Put libraries in "lib" subdirectory, not top level of $out
cmakeFlags = [ "-D__LIB=lib" ];
2015-07-11 11:11:14 +00:00
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 ];
};
}