2018-07-21 00:44:44 +00:00
|
|
|
{ stdenv, cmake, zlib, fetchFromGitHub }:
|
2016-11-08 20:13:50 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-08-08 13:35:46 +00:00
|
|
|
version = "1.0";
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "bloaty";
|
2016-11-08 20:13:50 +00:00
|
|
|
|
2017-07-19 11:45:28 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "bloaty";
|
2018-08-08 13:35:46 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0fck83zyh9bwlwdk3fkhv3337g9nii6rzf96gyghmnrsp9rzxs3l";
|
2016-11-08 20:13:50 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2017-07-19 11:45:28 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-05-22 21:04:56 +00:00
|
|
|
buildInputs = [ zlib ];
|
2016-11-08 20:13:50 +00:00
|
|
|
|
2018-05-22 21:04:56 +00:00
|
|
|
enableParallelBuilding = true;
|
2016-11-08 20:13:50 +00:00
|
|
|
|
2017-07-19 11:45:28 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-11-08 20:13:50 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|