@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, fetchpatch, autoreconfHook, libunwind }:
1+{ stdenv, lib, fetchurl, fetchpatch, autoreconfHook, libunwind }:
22
33stdenv.mkDerivation rec {
44 name = "gperftools-2.8";
@@ -20,20 +20,20 @@ stdenv.mkDerivation rec {
2020 nativeBuildInputs = [ autoreconfHook ];
2121
2222 # tcmalloc uses libunwind in a way that works correctly only on non-ARM linux
23− buildInputs = stdenv.lib.optional (stdenv.isLinux && !(stdenv.isAarch64 || stdenv.isAarch32)) libunwind;
23+ buildInputs = lib.optional (stdenv.isLinux && !(stdenv.isAarch64 || stdenv.isAarch32)) libunwind;
2424
2525 # Disable general dynamic TLS on AArch to support dlopen()'ing the library:
2626 # https://bugzilla.redhat.com/show_bug.cgi?id=1483558
27− configureFlags = stdenv.lib.optional (stdenv.isAarch32 || stdenv.isAarch64)
27+ configureFlags = lib.optional (stdenv.isAarch32 || stdenv.isAarch64)
2828 "--disable-general-dynamic-tls";
2929
30− prePatch = stdenv.lib.optionalString stdenv.isDarwin ''
30+ prePatch = lib.optionalString stdenv.isDarwin ''
3131 substituteInPlace Makefile.am --replace stdc++ c++
3232 substituteInPlace Makefile.in --replace stdc++ c++
3333 substituteInPlace libtool --replace stdc++ c++
3434 '';
3535
36− NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin
36+ NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin
3737 "-D_XOPEN_SOURCE";
3838
3939 # some packages want to link to the static tcmalloc_minimal
@@ -42,7 +42,7 @@ stdenv.mkDerivation rec {
4242
4343 enableParallelBuilding = true;
4444
45− meta = with stdenv.lib; {
45+ meta = with lib; {
4646 homepage = "https://github.com/gperftools/gperftools";
4747 description = "Fast, multi-threaded malloc() and nifty performance analysis tools";
4848 platforms = with platforms; linux ++ darwin;