gperftools: Add runtime perl dependency

pprof requires perl at run time.  Adding perl as a runtime dependencies lets the autoPatchSheBangs to patch up the programs in /bin.
This commit is contained in:
Russell O'Connor
2024-01-08 10:45:57 -05:00
parent cfc3698c31
commit 3f4ed1565b
@@ -4,6 +4,7 @@
, fetchpatch
, autoreconfHook
, libunwind
, perl
}:
stdenv.mkDerivation rec {
@@ -29,7 +30,8 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ autoreconfHook ];
# tcmalloc uses libunwind in a way that works correctly only on non-ARM dynamically linked linux
buildInputs = lib.optional (stdenv.isLinux && !(stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isStatic )) libunwind;
buildInputs = [ perl ]
++ lib.optional (stdenv.isLinux && !(stdenv.hostPlatform.isAarch || stdenv.hostPlatform.isStatic )) libunwind;
# Disable general dynamic TLS on AArch to support dlopen()'ing the library:
# https://bugzilla.redhat.com/show_bug.cgi?id=1483558