diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-12 21:29:10 +0100 |
---|---|---|
committer | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2021-02-12 21:34:14 +0100 |
commit | 1c33c0ad6b1b9a335c9a2c6747849309fb817eca (patch) | |
tree | ee0f7e8dfc5b408304efe50b48491d0aa9a4024f /pkgs/development/interpreters/ruby | |
parent | 5852a21819542e6809f68ba5a798600e69874e76 (diff) | |
download | nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.tar nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.tar.gz nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.tar.bz2 nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.tar.lz nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.tar.xz nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.tar.zst nixpkgs-1c33c0ad6b1b9a335c9a2c6747849309fb817eca.zip |
ruby: add option to enable jemalloc
Diffstat (limited to 'pkgs/development/interpreters/ruby')
-rw-r--r-- | pkgs/development/interpreters/ruby/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix index 2678188e8cf..36ae33ce1ed 100644 --- a/pkgs/development/interpreters/ruby/default.nix +++ b/pkgs/development/interpreters/ruby/default.nix @@ -1,6 +1,6 @@ { stdenv, buildPackages, lib , fetchurl, fetchpatch, fetchFromSavannah, fetchFromGitHub -, zlib, openssl, gdbm, ncurses, readline, groff, libyaml, libffi, autoreconfHook, bison +, zlib, openssl, gdbm, ncurses, readline, groff, libyaml, libffi, jemalloc, autoreconfHook, bison , autoconf, libiconv, libobjc, libunwind, Foundation , buildEnv, bundler, bundix , makeWrapper, buildRubyGem, defaultGemConfig, removeReferencesTo @@ -44,6 +44,7 @@ let , groff, docSupport ? true , libyaml, yamlSupport ? true , libffi, fiddleSupport ? true + , jemalloc, jemallocSupport ? false # By default, ruby has 3 observed references to stdenv.cc: # # - If you run: @@ -94,6 +95,7 @@ let ++ (op opensslSupport openssl) ++ (op gdbmSupport gdbm) ++ (op yamlSupport libyaml) + ++ (op jemallocSupport jemalloc) # Looks like ruby fails to build on darwin without readline even if curses # support is not enabled, so add readline to the build inputs if curses # support is disabled (if it's enabled, we already have it) and we're @@ -134,6 +136,7 @@ let ++ op useRailsExpress "--with-baseruby=${baseruby}/bin/ruby" ++ op (!jitSupport) "--disable-jit-support" ++ op (!docSupport) "--disable-install-doc" + ++ op (jemallocSupport) "--with-jemalloc" ++ ops stdenv.isDarwin [ # on darwin, we have /usr/include/tk.h -- so the configure script detects # that tk is installed |