2018-07-20 17:44:44 -07:00
|
|
|
{ stdenv, cmake, zlib, fetchFromGitHub }:
|
2016-11-08 12:13:50 -08:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-26 15:15:55 -07:00
|
|
|
version = "1.1";
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "bloaty";
|
2016-11-08 12:13:50 -08:00
|
|
|
|
2017-07-19 04:45:28 -07:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "bloaty";
|
2018-08-08 06:35:46 -07:00
|
|
|
rev = "v${version}";
|
2020-05-26 15:15:55 -07:00
|
|
|
sha256 = "1556gb8gb8jwf5mwxppcqz3mp269b5jhd51kj341iqkbn27zzngk";
|
2016-11-08 12:13:50 -08:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2017-07-19 04:45:28 -07:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-05-22 14:04:56 -07:00
|
|
|
buildInputs = [ zlib ];
|
2016-11-08 12:13:50 -08:00
|
|
|
|
2018-05-22 14:04:56 -07:00
|
|
|
enableParallelBuilding = true;
|
2016-11-08 12:13:50 -08:00
|
|
|
|
2017-07-19 04:45:28 -07:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-11-08 12:13:50 -08:00
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 {.,$out/bin}/bloaty
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "a size profiler for binaries";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/google/bloaty";
|
2016-11-08 12:13:50 -08:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2020-05-26 15:15:55 -07:00
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
2016-11-08 12:13:50 -08:00
|
|
|
};
|
|
|
|
}
|