blob: 9b18bcb25616b18dd3c6ed8e6984515302f81ac7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ stdenv, binutils, cmake, zlib, fetchFromGitHub }:
stdenv.mkDerivation rec {
version = "2018-05-22";
name = "bloaty-${version}";
src = fetchFromGitHub {
owner = "google";
repo = "bloaty";
rev = "054788b091ccfd43b05b9817062139145096d440";
sha256 = "0pmv66137ipzsjjdz004n61pz3aipjhh3b0w0y1406clqpwkvpjm";
fetchSubmodules = true;
};
nativeBuildInputs = [ cmake ];
buildInputs = [ zlib ];
enableParallelBuilding = true;
doCheck = true;
checkPhase = "ctest";
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 ];
};
}
|