diff options
author | Will Dietz <w@wdtz.org> | 2016-11-08 14:13:50 -0600 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2016-11-17 17:39:53 -0600 |
commit | a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73 (patch) | |
tree | e95a07c54b99ebbb72f7b042f99a8095fc08a95b /pkgs/development/tools | |
parent | 6dfd4f5b08199f7c23f63318f6f7a928906a1859 (diff) | |
download | nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.tar nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.tar.gz nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.tar.bz2 nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.tar.lz nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.tar.xz nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.tar.zst nixpkgs-a0b7ce3ac6cf2fac4ba7ccde068058ec75583b73.zip |
bloaty: init at 2016.11.07
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r-- | pkgs/development/tools/bloaty/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/tools/bloaty/default.nix b/pkgs/development/tools/bloaty/default.nix new file mode 100644 index 00000000000..c8e667722c5 --- /dev/null +++ b/pkgs/development/tools/bloaty/default.nix @@ -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 ]; + }; +} |