summary refs log tree commit diff
path: root/pkgs/applications/science/math/R/default.nix
diff options
context:
space:
mode:
authorschotts-fired <michael.m.schott@protonmail.com>2021-08-30 18:24:42 +0200
committerschotts-fired <michael.m.schott@protonmail.com>2021-08-30 18:24:42 +0200
commit9ec4fb0cd10d91831ba801ee675d6134f880c9f0 (patch)
treefeb82c5af082c16cf360f04b43a42f4d34adfa36 /pkgs/applications/science/math/R/default.nix
parent8a2ec31e224de9461390cdd03e5e0b0290cdad0b (diff)
downloadnixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.tar
nixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.tar.gz
nixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.tar.bz2
nixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.tar.lz
nixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.tar.xz
nixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.tar.zst
nixpkgs-9ec4fb0cd10d91831ba801ee675d6134f880c9f0.zip
R: add memory profiling compile option
Diffstat (limited to 'pkgs/applications/science/math/R/default.nix')
-rw-r--r--pkgs/applications/science/math/R/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix
index 5de644dfdfa..a8fdfe8571a 100644
--- a/pkgs/applications/science/math/R/default.nix
+++ b/pkgs/applications/science/math/R/default.nix
@@ -4,6 +4,7 @@
 , curl, Cocoa, Foundation, libobjc, libcxx, tzdata
 , withRecommendedPackages ? true
 , enableStrictBarrier ? false
+, enableMemoryProfiling ? false
 # R as of writing does not support outputting both .so and .a files; it outputs:
 #     --enable-R-static-lib conflicts with --enable-R-shlib and will be ignored
 , static ? false
@@ -56,6 +57,7 @@ stdenv.mkDerivation rec {
       --with-libtiff
       --with-ICU
       ${lib.optionalString enableStrictBarrier "--enable-strict-barrier"}
+      ${lib.optionalString enableMemoryProfiling "--enable-memory-profiling"}
       ${if static then "--enable-R-static-lib" else "--enable-R-shlib"}
       AR=$(type -p ar)
       AWK=$(type -p gawk)