Skip to content

Commit

Permalink
Merge pull request #20263 from dtzWill/feature/bloaty
Browse files Browse the repository at this point in the history
bloaty: init at 2016.11.16
  • Loading branch information
rasendubi authored Nov 18, 2016
2 parents 80daa95 + a0b7ce3 commit 7784775
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
doublec = "Chris Double <[email protected]>";
drets = "Dmytro Rets <[email protected]>";
drewkett = "Andrew Burkett <[email protected]>";
dtzWill = "Will Dietz <[email protected]>";
ebzzry = "Rommel Martinez <[email protected]>";
ederoyd46 = "Matthew Brown <[email protected]>";
eduarrrd = "Eduard Bachmakov <[email protected]>";
Expand Down
31 changes: 31 additions & 0 deletions pkgs/development/tools/bloaty/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{ stdenv, binutils, fetchgit }:

stdenv.mkDerivation rec {
version = "2016.11.16";
name = "bloaty-${version}";

src = fetchgit {
url = "https://github.com/google/bloaty.git";
rev = "d040e4821ace478f9b43360acd6801aefdd323f7";
sha256 = "1qk2wgd7vzr5zy0332y9h69cwkqmy8x7qz97xpgwwnk54amm8i3k";
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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5864,6 +5864,8 @@ in
bison3 = callPackage ../development/tools/parsing/bison/3.x.nix { };
bison = bison3;

bloaty = callPackage ../development/tools/bloaty { };

bossa = callPackage ../development/tools/misc/bossa {
wxGTK = wxGTK30;
};
Expand Down

0 comments on commit 7784775

Please sign in to comment.