nixpkgs/pkgs/development/libraries/gperftools/default.nix
R. RyanTM 769fa7ad76 gperftools: 2.6.3 -> 2.7
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/gperftools/versions.

These checks were done:

- built on NixOS
- /nix/store/8y8rcib0axcnrrq1xvg9yn3vn3i2a323-gperftools-2.7/bin/pprof passed the binary check.
- 1 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 2.7 with grep in /nix/store/8y8rcib0axcnrrq1xvg9yn3vn3i2a323-gperftools-2.7
- directory tree listing: https://gist.github.com/563708d434af605d1d26161b144b73c0
- du listing: https://gist.github.com/6feff1a0de5dc812f3e49aa97551174a
2018-06-08 06:41:46 -07:00

37 lines
1.2 KiB
Nix

{ stdenv, fetchurl, libunwind }:
stdenv.mkDerivation rec {
name = "gperftools-2.7";
src = fetchurl {
url = "https://github.com/gperftools/gperftools/releases/download/${name}/${name}.tar.gz";
sha256 = "1jb30zxmw7h9qxa8yi76rfxj4ssk60rv8n9y41m6pzqfk9lwis0y";
};
buildInputs = stdenv.lib.optional stdenv.isLinux libunwind;
prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.am --replace stdc++ c++
substituteInPlace Makefile.in --replace stdc++ c++
substituteInPlace libtool --replace stdc++ c++
'';
NIX_CFLAGS_COMPILE = stdenv.lib.optionals stdenv.isDarwin [
"-D_XOPEN_SOURCE" "-Wno-aligned-allocation-unavailable"
];
# some packages want to link to the static tcmalloc_minimal
# to drop the runtime dependency on gperftools
dontDisableStatic = true;
enableParallelBuilding = true;
meta = with stdenv.lib; {
homepage = https://github.com/gperftools/gperftools;
description = "Fast, multi-threaded malloc() and nifty performance analysis tools";
platforms = with platforms; linux ++ darwin;
license = licenses.bsd3;
maintainers = with maintainers; [ vcunat wkennington ];
};
}