aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/interpreters/ruby/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/development/interpreters/ruby/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/development/interpreters/ruby/default.nix13
1 files changed, 4 insertions, 9 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/development/interpreters/ruby/default.nix b/infra/libkookie/nixpkgs/pkgs/development/interpreters/ruby/default.nix
index 2678188e8cf7..65189fda0793 100644
--- a/infra/libkookie/nixpkgs/pkgs/development/interpreters/ruby/default.nix
+++ b/infra/libkookie/nixpkgs/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
@@ -243,14 +246,6 @@ let
) args; in self;
in {
- ruby_2_5 = generic {
- version = rubyVersion "2" "5" "8" "";
- sha256 = {
- src = "16md4jspjwixjlbhx3pnd5iwpca07p23ghkxkqd82sbchw3xy2vc";
- git = "19gkk3q9l33cwkfsp5k8f8fipq7gkyqkqirm9farbvy425519rv2";
- };
- };
-
ruby_2_6 = generic {
version = rubyVersion "2" "6" "6" "";
sha256 = {