2016-11-08 20:13:50 +00:00
|
|
|
{ stdenv, binutils, fetchgit }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-12-28 18:40:31 +00:00
|
|
|
version = "2016.12.28";
|
2016-11-08 20:13:50 +00:00
|
|
|
name = "bloaty-${version}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/google/bloaty.git";
|
2016-12-28 18:40:31 +00:00
|
|
|
rev = "2234386bcee7297dfa1b6d8a5d20f95ea4ed9bb0";
|
|
|
|
sha256 = "0cfsjgbp9r16d6qi8v4k609bbhjff4vhdiapfkhr34z1cik1md4l";
|
2016-11-08 20:13:50 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
sed -i 's,c++filt,${binutils}/bin/c++filt,' src/bloaty.cc
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 {.,$out/bin}/bloaty
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "a size profiler for binaries";
|
|
|
|
homepage = https://github.com/google/bloaty;
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.dtzWill ];
|
|
|
|
};
|
|
|
|
}
|