gperftools: 2.8 -> 2.8.1

This commit is contained in:
Pavol Rusnak 2021-01-19 23:02:44 +01:00
parent db942b99ec
commit cb12dc0166
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D

View File

@ -1,11 +1,20 @@
{ stdenv, lib, fetchurl, fetchpatch, autoreconfHook, libunwind }: { stdenv
, lib
, fetchFromGitHub
, fetchpatch
, autoreconfHook
, libunwind
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gperftools-2.8"; pname = "gperftools";
version = "2.8.1";
src = fetchurl { src = fetchFromGitHub {
url = "https://github.com/gperftools/gperftools/releases/download/${name}/${name}.tar.gz"; owner = pname;
sha256 = "0gjiplvday50x695pwjrysnvm5wfvg2b0gmqf6b4bdi8sv6yl394"; repo = pname;
rev = "${pname}-${version}";
sha256 = "19bj2vlsbfwq7m826v2ccqg47kd7cb5vcz1yw2x0v5qzhaxbakk1";
}; };
patches = [ patches = [
@ -29,8 +38,6 @@ stdenv.mkDerivation rec {
prePatch = lib.optionalString stdenv.isDarwin '' prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace Makefile.am --replace stdc++ c++ substituteInPlace Makefile.am --replace stdc++ c++
substituteInPlace Makefile.in --replace stdc++ c++
substituteInPlace libtool --replace stdc++ c++
''; '';
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin