depot/third_party/nixpkgs/pkgs/development/tools/bloaty/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

32 lines
697 B
Nix

{ lib, 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 ];
doCheck = true;
installPhase = ''
install -Dm755 {.,$out/bin}/bloaty
'';
meta = with lib; {
description = "a size profiler for binaries";
homepage = "https://github.com/google/bloaty";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ dtzWill ];
};
}