depot/third_party/nixpkgs/pkgs/development/tools/bloaty/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

34 lines
733 B
Nix

{ stdenv, cmake, zlib, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "1.1";
pname = "bloaty";
src = fetchFromGitHub {
owner = "google";
repo = "bloaty";
rev = "v${version}";
sha256 = "1556gb8gb8jwf5mwxppcqz3mp269b5jhd51kj341iqkbn27zzngk";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
enableParallelBuilding = true;
doCheck = true;
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 = with maintainers; [ dtzWill ];
};
}