2018-05-22 23:04:56 +02:00
|
|
|
{ stdenv, binutils, cmake, zlib, fetchFromGitHub }:
|
2016-11-08 21:13:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-07-14 23:12:22 +02:00
|
|
|
version = "2018-06-15";
|
2016-11-08 21:13:50 +01:00
|
|
|
name = "bloaty-${version}";
|
|
|
|
|
2017-07-19 13:45:28 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "bloaty";
|
2018-07-14 23:12:22 +02:00
|
|
|
rev = "bdbb3ce196c86d2154f5fba99b5ff73ca43446a9";
|
|
|
|
sha256 = "1r7di2p8bi12jpgl6cm4ygi1s0chv767mdcavc7pb45874vl02fx";
|
2016-11-08 21:13:50 +01:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
2017-07-19 13:45:28 +02:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2018-05-22 23:04:56 +02:00
|
|
|
buildInputs = [ zlib ];
|
2016-11-08 21:13:50 +01:00
|
|
|
|
2018-05-22 23:04:56 +02:00
|
|
|
enableParallelBuilding = true;
|
2016-11-08 21:13:50 +01:00
|
|
|
|
2017-07-19 13:45:28 +02:00
|
|
|
doCheck = true;
|
|
|
|
|
2016-11-08 21:13:50 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|