diff options
author | William A. Kennington III <william@wkennington.com> | 2015-09-20 22:05:22 -0700 |
---|---|---|
committer | William A. Kennington III <william@wkennington.com> | 2015-09-20 22:05:29 -0700 |
commit | 0a7176c5a12e633650f5b11bdbae79a60ba58715 (patch) | |
tree | 97c728e00f37566f98efae033a39dd794ee507da /pkgs | |
parent | 700c3c93fb26a60b3a11082323cb399212076a78 (diff) |
Revert "bundlerEnv: Use released versions of bundler"
This reverts commit 7bc8b1561e044084a37e844bbb5a1b00902c654a. This breaks some ruby gems and needs to be reworked again.
Diffstat (limited to 'pkgs')
3 files changed, 13 insertions, 13 deletions
diff --git a/pkgs/applications/networking/cluster/panamax/api/default.nix b/pkgs/applications/networking/cluster/panamax/api/default.nix index 55771876fcdd4..dcfef83f1bec4 100644 --- a/pkgs/applications/networking/cluster/panamax/api/default.nix +++ b/pkgs/applications/networking/cluster/panamax/api/default.nix @@ -1,4 +1,4 @@ -{ stdenv, buildEnv, fetchgit, fetchurl, makeWrapper, bundlerEnv, bundler +{ stdenv, buildEnv, fetchgit, fetchurl, makeWrapper, bundlerEnv, bundler_HEAD , ruby, libxslt, libxml2, sqlite, openssl, docker , dataDir ? "/var/lib/panamax-api" }: @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { lockfile = ./Gemfile.lock; buildInputs = [ openssl ]; }; - bundler' = bundler.override { inherit ruby; }; + bundler = bundler_HEAD.override { inherit ruby; }; database_yml = builtins.toFile "database.yml" '' production: @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { sha256 = "1g75y25asj33gcczpb9iwnk6f7afm1xjqyw803rr3y2h7dm6jivy"; }; - buildInputs = [ makeWrapper sqlite openssl env.ruby bundler' ]; + buildInputs = [ makeWrapper sqlite openssl env.ruby bundler ]; setSourceRoot = '' mkdir -p $out/share diff --git a/pkgs/applications/networking/cluster/panamax/ui/default.nix b/pkgs/applications/networking/cluster/panamax/ui/default.nix index 08a433c6bdb08..3dac106136250 100644 --- a/pkgs/applications/networking/cluster/panamax/ui/default.nix +++ b/pkgs/applications/networking/cluster/panamax/ui/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchgit, fetchurl, makeWrapper, bundlerEnv, bundler +{ stdenv, fetchgit, fetchurl, makeWrapper, bundlerEnv, bundler_HEAD , ruby, rubygemsFun, openssl, sqlite, dataDir ? "/var/lib/panamax-ui"}: with stdenv.lib; @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ openssl ]; }; - bundler' = bundler.override { inherit ruby; }; + bundler = bundler_HEAD.override { inherit ruby; }; src = fetchgit { rev = "refs/tags/v${version}"; @@ -24,7 +24,7 @@ stdenv.mkDerivation rec { sha256 = "0vwy0gazfx3zkf2bx862jspidgn5p97d3jaq99x38qfhxp554sn9"; }; - buildInputs = [ makeWrapper env.ruby openssl sqlite bundler' ]; + buildInputs = [ makeWrapper env.ruby openssl sqlite bundler ]; setSourceRoot = '' mkdir -p $out/share diff --git a/pkgs/development/interpreters/ruby/bundler-env/default.nix b/pkgs/development/interpreters/ruby/bundler-env/default.nix index 762beffd7451b..b51a6d49bd3d9 100644 --- a/pkgs/development/interpreters/ruby/bundler-env/default.nix +++ b/pkgs/development/interpreters/ruby/bundler-env/default.nix @@ -1,5 +1,5 @@ { stdenv, runCommand, writeText, writeScript, writeScriptBin, ruby, lib -, callPackage, defaultGemConfig, fetchurl, fetchgit, buildRubyGem, bundler +, callPackage, defaultGemConfig, fetchurl, fetchgit, buildRubyGem , bundler_HEAD , git }@defs: @@ -18,7 +18,7 @@ let shellEscape = x: "'${lib.replaceChars ["'"] [("'\\'" + "'")] x}'"; const = x: y: x; - bundler' = bundler.override { inherit ruby; }; + bundler = bundler_HEAD.override { inherit ruby; }; inherit (builtins) attrValues; gemName = attrs: "${attrs.name}-${attrs.version}.gem"; @@ -252,7 +252,7 @@ let buildInputs = [ ruby - bundler' + bundler git ] ++ args.buildInputs or []; @@ -270,7 +270,7 @@ let cp ${purifiedLockfile} $BUNDLE_GEMFILE.lock export NIX_GEM_SOURCES=${sources} - export NIX_BUNDLER_GEMPATH=${bundler'}/${ruby.gemPath} + export NIX_BUNDLER_GEMPATH=${bundler}/${ruby.gemPath} export GEM_HOME=$out/${ruby.gemPath} export GEM_PATH=$NIX_BUNDLER_GEMPATH:$GEM_HOME @@ -279,7 +279,7 @@ let ${allBuildFlags} mkdir gems - cp ${bundler'}/${ruby.gemPath}/cache/bundler-*.gem gems + cp ${bundler}/${bundler.ruby.gemPath}/cache/bundler-*.gem gems ${copyGems} ${lib.optionalString (!documentation) '' @@ -304,7 +304,7 @@ let passthru = { inherit ruby; - bundler = bundler'; + inherit bundler; env = let irbrc = builtins.toFile "irbrc" '' @@ -320,7 +320,7 @@ let shellHook = '' export BUNDLE_GEMFILE=${derivation.bundle}/Gemfile export GEM_HOME=${derivation}/${ruby.gemPath} - export NIX_BUNDLER_GEMPATH=${bundler'}/${ruby.gemPath} + export NIX_BUNDLER_GEMPATH=${bundler}/${ruby.gemPath} export GEM_PATH=$NIX_BUNDLER_GEMPATH:$GEM_HOME export OLD_IRBRC="$IRBRC" export IRBRC=${irbrc} |