diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-06-27 19:59:47 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-06-27 20:00:13 +0200 |
commit | 63aff93c9b0711255c05261f5935af9d06b23c08 (patch) | |
tree | e021b4f1598cf0b8e29640780515597468ec7806 /pkgs/development/libraries/gperftools | |
parent | 34de04149e17c1c15976fd4bfdc4490b240a59fc (diff) |
gperftools: Support Darwin
Diffstat (limited to 'pkgs/development/libraries/gperftools')
-rw-r--r-- | pkgs/development/libraries/gperftools/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/gperftools/default.nix b/pkgs/development/libraries/gperftools/default.nix index c7c639f2adb87..9ffccac1e0f48 100644 --- a/pkgs/development/libraries/gperftools/default.nix +++ b/pkgs/development/libraries/gperftools/default.nix @@ -8,7 +8,7 @@ stdenv.mkDerivation rec { sha256 = "0ks9gsnhxrs2vccc6ha9m8xmj83lmw09xcws4zc0k57q4jcy5bgk"; }; - buildInputs = [ libunwind ]; + buildInputs = stdenv.lib.optional stdenv.isLinux libunwind; # some packages want to link to the static tcmalloc_minimal # to drop the runtime dependency on gperftools @@ -19,6 +19,6 @@ stdenv.mkDerivation rec { meta = { homepage = https://code.google.com/p/gperftools/; description = "Fast, multi-threaded malloc() and nifty performance analysis tools"; - platforms = stdenv.lib.platforms.linux; + platforms = stdenv.lib.platforms.linux ++ stdenv.lib.platforms.darwin; }; } |