@@ -0,0 +1,31 @@
1+{ stdenv, binutils, fetchgit }:
2+
3+stdenv.mkDerivation rec {
4+ version = "2016.11.16";
5+ name = "bloaty-${version}";
6+
7+ src = fetchgit {
8+ url = "https://github.com/google/bloaty.git";
9+ rev = "d040e4821ace478f9b43360acd6801aefdd323f7";
10+ sha256 = "1qk2wgd7vzr5zy0332y9h69cwkqmy8x7qz97xpgwwnk54amm8i3k";
11+ fetchSubmodules = true;
12+ };
13+
14+ enableParallelBuilding = true;
15+
16+ configurePhase = ''
17+ sed -i 's,c++filt,${binutils}/bin/c++filt,' src/bloaty.cc
18+ '';
19+
20+ installPhase = ''
21+ install -Dm755 {.,$out/bin}/bloaty
22+ '';
23+
24+ meta = with stdenv.lib; {
25+ description = "a size profiler for binaries";
26+ homepage = https://github.com/google/bloaty;
27+ license = licenses.asl20;
28+ platforms = platforms.unix;
29+ maintainers = [ maintainers.dtzWill ];
30+ };
31+}