diff --git a/pkgs/development/interpreters/ruby/patches.nix b/pkgs/development/interpreters/ruby/patches.nix deleted file mode 100644 index 0cc477c991e..00000000000 --- a/pkgs/development/interpreters/ruby/patches.nix +++ /dev/null @@ -1,138 +0,0 @@ -{ fetchurl, writeScript, ruby, ncurses, sqlite, libxml2, libxslt, libffi -, zlib, libuuid, gems, jdk, python, stdenv, libiconv, imagemagick -, pkgconfig }: - -let - - patchUsrBinEnv = writeScript "path-usr-bin-env" '' - #!/bin/sh - echo "===================" - find "$1" -type f -name "*.rb" | xargs sed -i "s@/usr/bin/env@$(type -p env)@g" - find "$1" -type f -name "*.mk" | xargs sed -i "s@/usr/bin/env@$(type -p env)@g" - ''; - -in - -{ - buildr = { - # Many Buildfiles rely on RUBYLIB containing the current directory - # (as was the default in Ruby < 1.9.2). - extraWrapperFlags = "--prefix RUBYLIB : ."; - }; - - fakes3 = { - postInstall = '' - cd $out/${ruby.gemPath}/gems/* - patch -Np1 -i ${../../ruby-modules/fake-s3-list-bucket.patch} - ''; - }; - - ffi = { - postUnpack = "onetuh"; - buildFlags = ["--with-ffi-dir=${libffi}"]; - NIX_POST_EXTRACT_FILES_HOOK = patchUsrBinEnv; - }; - - iconv = { buildInputs = [ libiconv ]; }; - - libv8 = { - # This fix is needed to fool scons, which clears the environment by default. - # It's ugly, but it works. - # - # We create a gcc wrapper wrapper, which reexposes the environment variables - # that scons hides. Furthermore, they treat warnings as errors causing the - # build to fail, due to an unused variable. - # - # Finally, we must set CC and AR explicitly to allow scons to find the - # compiler and archiver - - preBuild = '' - cat > $TMPDIR/g++ < -Date: Wed Sep 4 16:16:12 2013 -0400 - - Fix LS_BUCKET - - GET foo.s3.amazonaws.com/ and GET s3.amazonaws.com/foo should result in - an LS_BUCKET request, but under the previous logic it would result in a - LIST_BUCKETS request. GET s3.amazonaws.com/ still results in a - LIST_BUCKETS request due to the 'if path == "/" and s_req.is_path_style' - conditional. - - Signed-off-by: Shea Levy - -diff --git a/lib/fakes3/server.rb b/lib/fakes3/server.rb -index 6958151..36d9cad 100644 ---- a/lib/fakes3/server.rb -+++ b/lib/fakes3/server.rb -@@ -213,10 +213,7 @@ module FakeS3 - elems = path.split("/") - end - -- if elems.size == 0 -- # List buckets -- s_req.type = Request::LIST_BUCKETS -- elsif elems.size == 1 -+ if elems.size < 2 - s_req.type = Request::LS_BUCKET - s_req.query = query - else