1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/bloaty/default.nix

33 lines
699 B
Nix

{ 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 stdenv.lib; {
description = "a size profiler for binaries";
homepage = "https://github.com/google/bloaty";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ dtzWill ];
};
}