3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/pahole/default.nix
Will Dietz 254218bffb pahole: (??) -> v1.12, cleanup (#46913)
(roughly 2015-09-15 -> 2018-08-16)
2018-09-20 00:28:05 +02:00

27 lines
731 B
Nix

{ stdenv, fetchgit, cmake, elfutils, zlib }:
stdenv.mkDerivation rec {
name = "pahole-${version}";
version = "1.12";
src = fetchgit {
url = https://git.kernel.org/pub/scm/devel/pahole/pahole.git;
sha256 = "1a8xfwqdc2j3ydh9bk2pkvsaf3lrkbxj66vj991c7knc31ix8kpw";
rev = "v${version}";
};
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 ];
};
}