git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20263 from dtzWill/feature/bloaty

bloaty: init at 2016.11.16

commit77847756f33b69c46fcdad272085cd8f91f59712 authorAlexey Shmalko <rasen.dubi@gmail.com> dateFri 18 Nov 2016, 12:39 (10 years ago) parent80daa95a0b7ce3
3 files changed+34
lib/maintainers.nix+1 pkgs/development/tools/bloaty/default.nix+31 pkgs/top-level/all-packages.nix+2
lib/maintainers.nix+1
@@ -129,6 +129,7 @@
129129 doublec = "Chris Double <chris.double@double.co.nz>";
130130 drets = "Dmytro Rets <dmitryrets@gmail.com>";
131131 drewkett = "Andrew Burkett <burkett.andrew@gmail.com>";
132+ dtzWill = "Will Dietz <nix@wdtz.org>";
132133 ebzzry = "Rommel Martinez <ebzzry@gmail.com>";
133134 ederoyd46 = "Matthew Brown <matt@ederoyd.co.uk>";
134135 eduarrrd = "Eduard Bachmakov <e.bachmakov@gmail.com>";
pkgs/development/tools/bloaty/default.nixnew file+31
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -5864,6 +5864,8 @@ in
58645864 bison3 = callPackage ../development/tools/parsing/bison/3.x.nix { };
58655865 bison = bison3;
58665866
5867+ bloaty = callPackage ../development/tools/bloaty { };
5868+
58675869 bossa = callPackage ../development/tools/misc/bossa {
58685870 wxGTK = wxGTK30;
58695871 };