1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 17:41:12 +00:00
nixpkgs/pkgs/development/tools/bloaty/default.nix

32 lines
772 B
Nix
Raw Normal View History

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 ];
};
}