Adding rubygems/lib to RUBYLIB in wrapProgram for ruby libs.nix

Adding ncursesw, and feeding it to sup for wide character support

svn path=/nixpkgs/trunk/; revision=21032
This commit is contained in:
Lluís Batlle i Rossell 2010-04-12 19:23:14 +00:00
parent cf70c1ecbc
commit d7cba8fc61

View file

@ -33,9 +33,10 @@ let libs =
# either the nameNoVersion or name must match
patches = {
sup = {
buildInputs = [ pkgs.ncurses pkgs.xapianBindings ];
buildInputs = [ pkgs.ncurses pkgs.xapianBindings libs.ncursesw ];
};
ncurses = { buildInputs = [ pkgs.ncurses ]; };
ncurses = { buildInputs = [ pkgs.ncurses ]; };
nokogiri = {
buildFlags=["--with-xml2-dir=${pkgs.libxml2} --with-xml2-include=${pkgs.libxml2}/include/libxml2"
"--with-xslt-dir=${pkgs.libxslt}" ];
@ -122,7 +123,7 @@ let libs =
for prog in $out/bin/*; do
wrapProgram "$prog" \
--prefix RUBYLIB : "$RUBYLIB" \
--prefix RUBYLIB : "$RUBYLIB":${rubygems}/lib \
--prefix GEM_PATH : "$GEM_PATH" \
--set RUBYOPT 'rubygems'
done
@ -154,7 +155,7 @@ let libs =
# ================ START automatically generated code ================
# WARNING: automatically generated CODE
# This section has been generated by gem nix sup chronic rubygems-update xrefresh-server rb-inotify jeweler
# This section has been generated by gem nix sup chronic rubygems-update xrefresh-server rb-inotify jeweler ncursesw
# the gem nix command has been added by a nix patch to ruby gems
json_pure_1_2_4 = rubyDerivation {
@ -594,6 +595,22 @@ minutes of work.
};
};
ncursesw_1_2_4_1 = rubyDerivation {
name = "ruby-ncursesw-1.2.4.1"; # full_name
nameNoVersion = "ncursesw";
propagatedBuildInputs = [ ];
src = fetchurl {
url = "http://gems.rubyforge.org/gems/ncursesw-1.2.4.1.gem";
sha256 = "0cn13h14pk8yds8aklpdcpzl0z6rqifpmaz4lw29g10lgwvfv409";
};
meta = {
homepage = "http://ncurses-ruby.berlios.de/";
license = []; # one of ?
description = "Hacked up version of ncurses gem that supports wide characters and ruby1[...]";
longDescription = "Hacked up version of ncurses gem that supports wide characters and ruby1.9.1. Original ncurses gem by t-peters@users.berlios.de.";
};
};
# aliases
rmail=rmail_1_0_0;
term_ansicolor=term_ansicolor_1_0_5;
@ -619,5 +636,6 @@ chronic=chronic_0_2_3;
json_pure=json_pure_1_2_4;
lockfile=lockfile_1_4_3;
ffi=ffi_0_6_3;
ncursesw=ncursesw_1_2_4_1;
# ================ END automatically generated code ================
}; in libs