mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
46420bbaa3
treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
35 lines
725 B
Nix
35 lines
725 B
Nix
{ stdenv, cmake, zlib, fetchFromGitHub }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "1.0";
|
|
pname = "bloaty";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "google";
|
|
repo = "bloaty";
|
|
rev = "v${version}";
|
|
sha256 = "0fck83zyh9bwlwdk3fkhv3337g9nii6rzf96gyghmnrsp9rzxs3l";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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 = [ maintainers.dtzWill ];
|
|
};
|
|
}
|