ruby: don't reference baseruby
This commit is contained in:
parent
f315b7d74a
commit
ad026dab98
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -75,6 +75,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -93,6 +93,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -77,6 +77,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchgit, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchgit, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -92,8 +92,15 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
license = stdenv.lib.licenses.ruby;
|
license = stdenv.lib.licenses.ruby;
|
||||||
homepage = "http://www.ruby-lang.org/en/";
|
homepage = "http://www.ruby-lang.org/en/";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchgit, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchgit, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -91,6 +91,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchgit, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchgit, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -90,6 +90,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchgit, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchgit, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -94,6 +94,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, fetchurl, fetchgit, fetchFromGitHub
|
{ stdenv, lib, fetchurl, fetchgit, fetchFromGitHub
|
||||||
, zlib, zlibSupport ? true
|
, zlib, zlibSupport ? true
|
||||||
, openssl, opensslSupport ? true
|
, openssl, opensslSupport ? true
|
||||||
, gdbm, gdbmSupport ? true
|
, gdbm, gdbmSupport ? true
|
||||||
@ -85,6 +85,12 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
envHooks+=(addGemPath)
|
envHooks+=(addGemPath)
|
||||||
EOF
|
EOF
|
||||||
|
'' + lib.optionalString useRailsExpress ''
|
||||||
|
rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
|
||||||
|
|
||||||
|
# Prevent the baseruby from being included in the closure.
|
||||||
|
sed -i '/^ CONFIG\["BASERUBY"\]/d' $rbConfig
|
||||||
|
sed -i "s|'--with-baseruby=${baseruby}/bin/ruby'||" $rbConfig
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
Loading…
Reference in New Issue
Block a user