From 02eef5b0f45c614dd30ac515a7ffc16c550e17eb Mon Sep 17 00:00:00 2001 From: "Jason \"Don\" O'Conal" Date: Tue, 18 Jun 2013 13:19:36 +1000 Subject: [PATCH] ruby-1.9: disable tk when compiling on darwin --- pkgs/development/interpreters/ruby/ruby-19.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/ruby/ruby-19.nix b/pkgs/development/interpreters/ruby/ruby-19.nix index 090bb0c1bce..afe9066dd08 100644 --- a/pkgs/development/interpreters/ruby/ruby-19.nix +++ b/pkgs/development/interpreters/ruby/ruby-19.nix @@ -40,7 +40,10 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; patches = [ ./ruby19-parallel-install.patch ]; - configureFlags = ["--enable-shared" "--enable-pthread"]; + configureFlags = [ "--enable-shared" "--enable-pthread" ] + # on darwin, we have /usr/include/tk.h -- so the configure script detects + # that tk is installed + ++ ( if stdenv.isDarwin then [ "--with-out-ext=tk " ] else [ ]); installFlags = stdenv.lib.optionalString docSupport "install-doc"; # Bundler tries to create this directory