nixpkgs/pkgs/development/tools/bloaty/default.nix

32 lines
772 B
Nix
Raw Normal View History

2016-11-08 21:13:50 +01:00
{ stdenv, binutils, fetchgit }:
stdenv.mkDerivation rec {
2016-12-28 19:40:31 +01:00
version = "2016.12.28";
2016-11-08 21:13:50 +01:00
name = "bloaty-${version}";
src = fetchgit {
url = "https://github.com/google/bloaty.git";
2016-12-28 19:40:31 +01:00
rev = "2234386bcee7297dfa1b6d8a5d20f95ea4ed9bb0";
sha256 = "0cfsjgbp9r16d6qi8v4k609bbhjff4vhdiapfkhr34z1cik1md4l";
2016-11-08 21:13:50 +01: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 ];
};
}