rename rubyLibs to rubyPackages

This commit is contained in:
Charles Strahan 2014-11-09 22:16:58 +00:00
parent 2b0750f87a
commit cf8f4963a7
13 changed files with 34 additions and 21 deletions

View File

@ -73,7 +73,7 @@ rec {
}; };
hub = import ./hub { hub = import ./hub {
inherit (rubyLibs) rake; inherit (rubyPackages) rake;
inherit stdenv fetchurl groff makeWrapper; inherit stdenv fetchurl groff makeWrapper;
}; };

View File

@ -14,7 +14,7 @@ in stdenv.mkDerivation rec {
sha256 = "0x0zwxyj4dwbk7l64s3lgny10mjf0ba8jwrbafsm4d72sncmacv0"; sha256 = "0x0zwxyj4dwbk7l64s3lgny10mjf0ba8jwrbafsm4d72sncmacv0";
}; };
buildInputs = [ buildInputs = [
ruby rubyLibs.bundler libiconv libxslt libxml2 pkgconfig ruby rubyPackages.bundler libiconv libxslt libxml2 pkgconfig
libffi imagemagickBig postgresql which stdenv libffi imagemagickBig postgresql which stdenv
]; ];
installPhase = '' installPhase = ''

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, ruby, rubyLibs, libiconv, libxslt, libxml2, pkgconfig, libffi, imagemagickBig, postgresql }: { stdenv, fetchurl, ruby, rubyPackages, libiconv, libxslt, libxml2, pkgconfig, libffi, imagemagickBig, postgresql }:
let let
gemspec = map (gem: fetchurl { url=gem.url; sha256=gem.hash; }) (import ./Gemfile.nix); gemspec = map (gem: fetchurl { url=gem.url; sha256=gem.hash; }) (import ./Gemfile.nix);
@ -25,7 +25,7 @@ in stdenv.mkDerivation rec {
''; '';
buildInputs = [ buildInputs = [
ruby rubyLibs.bundler libiconv libxslt libxml2 pkgconfig libffi ruby rubyPackages.bundler libiconv libxslt libxml2 pkgconfig libffi
imagemagickBig postgresql imagemagickBig postgresql
]; ];

View File

@ -0,0 +1,11 @@
{ ruby, rubygemsFun, callPackage }:
{
# Nix utilities
gemFixes = callPackage ../development/interpreters/ruby/fixes.nix { };
buildRubyGem = callPackage ../development/interpreters/ruby/gem.nix { inherit ruby; };
loadRubyEnv = callPackage ../development/interpreters/ruby/load-ruby-env.nix { inherit ruby; };
# Gems
rubygems = rubygemsFun ruby;
}

View File

@ -42,7 +42,7 @@ composableDerivation.composableDerivation {} rec {
name = "ruby"; name = "ruby";
enable = { enable = {
buildInputs = [ ruby ]; buildInputs = [ ruby ];
# export same env vars as in rubyLibs # export same env vars as in rubyPackages
preConfigure = '' preConfigure = ''
export RUBY_LIB=$out/${ruby.libPath} export RUBY_LIB=$out/${ruby.libPath}
export RUBY_LIB_ARCH=$RUBY_LIB export RUBY_LIB_ARCH=$RUBY_LIB

View File

@ -42,7 +42,7 @@ composableDerivation.composableDerivation {} rec {
name = "ruby"; name = "ruby";
enable = { enable = {
buildInputs = [ ruby ]; buildInputs = [ ruby ];
# export same env vars as in rubyLibs # export same env vars as in rubyPackages
preConfigure = '' preConfigure = ''
export RUBY_LIB=$out/${ruby.libPath} export RUBY_LIB=$out/${ruby.libPath}
export RUBY_LIB_ARCH=$RUBY_LIB export RUBY_LIB_ARCH=$RUBY_LIB

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, dpkg, curl, libarchive, openssl, ruby, rubyLibs, libiconv { stdenv, fetchurl, dpkg, curl, libarchive, openssl, ruby, rubyPackages, libiconv
, libxml2, libxslt }: , libxml2, libxslt }:
assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux"; assert stdenv.system == "x86_64-linux" || stdenv.system == "i686-linux";
@ -58,7 +58,7 @@ stdenv.mkDerivation rec {
ln -s ${ruby}/bin/erb opt/vagrant/embedded/bin ln -s ${ruby}/bin/erb opt/vagrant/embedded/bin
ln -s ${ruby}/bin/gem opt/vagrant/embedded/bin ln -s ${ruby}/bin/gem opt/vagrant/embedded/bin
ln -s ${ruby}/bin/irb opt/vagrant/embedded/bin ln -s ${ruby}/bin/irb opt/vagrant/embedded/bin
ln -s ${rubyLibs.rake}/bin/rake opt/vagrant/embedded/bin ln -s ${rubyPackages.rake}/bin/rake opt/vagrant/embedded/bin
ln -s ${ruby}/bin/rdoc opt/vagrant/embedded/bin ln -s ${ruby}/bin/rdoc opt/vagrant/embedded/bin
ln -s ${ruby}/bin/ri opt/vagrant/embedded/bin ln -s ${ruby}/bin/ri opt/vagrant/embedded/bin
ln -s ${ruby}/bin/ruby opt/vagrant/embedded/bin ln -s ${ruby}/bin/ruby opt/vagrant/embedded/bin

View File

@ -16,7 +16,7 @@ in
packageOverrides = { packageOverrides = {
rubyCollection = collection { rubyCollection = collection {
name = "ruby"; name = "ruby";
list = let l = rubyLibs; in list = let l = rubyPackages; in
[ pkgs.ruby l.chronic l.sup ]; [ pkgs.ruby l.chronic l.sup ];
}; };
} }

View File

@ -1,5 +1,5 @@
{ stdenv, lib, go, fetchgit, fetchhg, fetchbzr, fetchFromGitHub { stdenv, lib, go, fetchgit, fetchhg, fetchbzr, fetchFromGitHub
, ruby, rubyLibs, nodejs }: , ruby, rubyPackages, nodejs }:
let let
version = "0.4.0"; version = "0.4.0";
@ -13,10 +13,10 @@ stdenv.mkDerivation {
inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub; inherit stdenv lib fetchgit fetchhg fetchbzr fetchFromGitHub;
}; };
buildInputs = [ go ruby rubyLibs.sass nodejs ]; buildInputs = [ go ruby rubyPackages.sass nodejs ];
configurePhase = flip concatMapStrings configurePhase = flip concatMapStrings
(with rubyLibs; [ execjs json minitest rake rdoc sass uglifier ]) (with rubyPackages; [ execjs json minitest rake rdoc sass uglifier ])
(gem: '' (gem: ''
export GEM_PATH="$GEM_PATH:${gem}/${ruby.gemPath}" export GEM_PATH="$GEM_PATH:${gem}/${ruby.gemPath}"
''); '');

View File

@ -1,5 +1,5 @@
{ stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, glib, libdaemon { stdenv, fetchgit, autoconf, automake, libtool, pkgconfig, glib, libdaemon
, mpd_clientlib, curl, sqlite, ruby, rubyLibs, libnotify, haskellPackages }: , mpd_clientlib, curl, sqlite, ruby, rubyPackages, libnotify, haskellPackages }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "20130809"; version = "20130809";
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
buildInputs = buildInputs =
[ autoconf automake libtool pkgconfig glib libdaemon haskellPackages.pandoc [ autoconf automake libtool pkgconfig glib libdaemon haskellPackages.pandoc
mpd_clientlib curl sqlite ruby rubyLibs.nokogiri libnotify ]; mpd_clientlib curl sqlite ruby rubyPackages.nokogiri libnotify ];
preConfigure = '' preConfigure = ''
./autogen.sh ./autogen.sh

View File

@ -1,9 +1,9 @@
{ stdenv, rubygems, rubyLibs, ruby, makeWrapper }: { stdenv, rubygems, rubyPackages, ruby, makeWrapper }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gem-nix"; name = "gem-nix";
buildInputs = [ ruby rubygems rubyLibs.nix makeWrapper ]; buildInputs = [ ruby rubygems rubyPackages.nix makeWrapper ];
phases = ["installPhase"]; phases = ["installPhase"];

View File

@ -654,7 +654,7 @@ let
ccnet = callPackage ../tools/networking/ccnet { }; ccnet = callPackage ../tools/networking/ccnet { };
consul = callPackage ../servers/consul { consul = callPackage ../servers/consul {
inherit ruby rubyLibs; inherit ruby rubyPackages;
}; };
consul_ui = consul.ui; consul_ui = consul.ui;
@ -4050,6 +4050,8 @@ let
ruby_2_0 = ruby_2_0_0; ruby_2_0 = ruby_2_0_0;
ruby_2_1 = ruby_2_1_3; ruby_2_1 = ruby_2_1_3;
rubyPackages = callPackage ../development/interpreters/ruby/packages.nix { };
rubygemsFun = ruby: builderDefsPackage (import ../development/interpreters/ruby/rubygems.nix) { rubygemsFun = ruby: builderDefsPackage (import ../development/interpreters/ruby/rubygems.nix) {
inherit ruby makeWrapper; inherit ruby makeWrapper;
}; };
@ -9968,7 +9970,7 @@ let
ruby_gpgme = callPackage ../development/libraries/ruby_gpgme { ruby_gpgme = callPackage ../development/libraries/ruby_gpgme {
ruby = ruby_1_9_3; ruby = ruby_1_9_3;
hoe = rubyLibs.hoe; hoe = rubyPackages.hoe;
}; };
ruby_ncursesw_sup = callPackage ../development/libraries/ruby_ncursesw_sup { }; ruby_ncursesw_sup = callPackage ../development/libraries/ruby_ncursesw_sup { };
@ -9979,7 +9981,7 @@ let
smtube = callPackage ../applications/video/smtube {}; smtube = callPackage ../applications/video/smtube {};
sup = with rubyLibs; callPackage ../applications/networking/mailreaders/sup { sup = with rubyPackages; callPackage ../applications/networking/mailreaders/sup {
ruby = ruby_1_9_3.override { ruby = ruby_1_9_3.override {
cursesSupport = true; cursesSupport = true;
}; };
@ -9992,7 +9994,7 @@ let
# See https://github.com/NixOS/nixpkgs/issues/1804 and # See https://github.com/NixOS/nixpkgs/issues/1804 and
# https://github.com/NixOS/nixpkgs/issues/2146 # https://github.com/NixOS/nixpkgs/issues/2146
bundler = pkgs.lib.overrideDerivation pkgs.rubyLibs.bundler ( bundler = pkgs.lib.overrideDerivation pkgs.rubyPackages.bundler (
oldAttrs: { oldAttrs: {
dontPatchShebangs = 1; dontPatchShebangs = 1;
} }

View File

@ -11495,7 +11495,7 @@ let
propagatedBuildInputs = with self; [ dateutil ]; propagatedBuildInputs = with self; [ dateutil ];
preInstall = stdenv.lib.optionalString stdenv.isDarwin '' preInstall = stdenv.lib.optionalString stdenv.isDarwin ''
sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.rubyLibs.terminal_notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py sed -i 's|^\([ ]*\)self.bin_path.*$|\1self.bin_path = "${pkgs.rubyPackages.terminal_notifier}/bin/terminal-notifier"|' build/lib/pync/TerminalNotifier.py
''; '';
meta = with stdenv.lib; { meta = with stdenv.lib; {