2012-01-10 23:49:24 +00:00
|
|
|
{ fetchurl, writeScript, ruby, ncurses, sqlite, libxml2, libxslt, libffi
|
|
|
|
, zlib, libuuid, gems, jdk }:
|
2011-01-21 08:25:02 +00:00
|
|
|
|
|
|
|
let
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
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"
|
|
|
|
'';
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
in
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
{
|
|
|
|
sup = { buildInputs = [ gems.ncursesw ]; };
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
sqlite3 = { propagatedBuildInputs = [ sqlite ]; };
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
rails = { gemFlags = "--no-ri --no-rdoc"; };
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
ncurses = { propagatedBuildInputs = [ ncurses ]; };
|
2013-03-04 15:43:20 +00:00
|
|
|
|
|
|
|
nix = {
|
|
|
|
postInstall = ''
|
|
|
|
cd $out/${ruby.gemPath}/gems/nix*
|
|
|
|
patch -Np1 -i ${./fix-gem-nix-versions.patch}
|
|
|
|
'';
|
|
|
|
};
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
ncursesw = { propagatedBuildInputs = [ ncurses ]; };
|
2012-01-10 23:49:24 +00:00
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
nokogiri = {
|
2012-01-10 23:49:24 +00:00
|
|
|
buildFlags =
|
|
|
|
[ "--with-xml2-dir=${libxml2} --with-xml2-include=${libxml2}/include/libxml2"
|
|
|
|
"--with-xslt-dir=${libxslt}"
|
|
|
|
];
|
2011-01-21 08:25:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
ffi = {
|
|
|
|
postUnpack = "onetuh";
|
2012-01-10 23:49:24 +00:00
|
|
|
buildFlags = ["--with-ffi-dir=${libffi}"];
|
2011-01-21 08:25:02 +00:00
|
|
|
NIX_POST_EXTRACT_FILES_HOOK = patchUsrBinEnv;
|
|
|
|
};
|
|
|
|
|
|
|
|
xrefresh_server =
|
2012-01-10 23:49:24 +00:00
|
|
|
let
|
|
|
|
patch = fetchurl {
|
|
|
|
url = "http://mawercer.de/~nix/xrefresh.diff.gz";
|
|
|
|
sha256 = "1f7bnmn1pgkmkml0ms15m5lx880hq2sxy7vsddb3sbzm7n1yyicq";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
propagatedBuildInputs = [ gems.rb_inotify ];
|
2011-01-21 08:25:02 +00:00
|
|
|
|
2012-01-10 23:49:24 +00:00
|
|
|
# monitor implementation for Linux
|
|
|
|
postInstall = ''
|
|
|
|
cd $out/${ruby.gemPath}/gems/*
|
|
|
|
zcat ${patch} | patch -p 1
|
|
|
|
''; # */
|
|
|
|
};
|
2011-01-21 08:25:02 +00:00
|
|
|
|
|
|
|
xapian_full = {
|
|
|
|
buildInputs = [ gems.rake zlib libuuid ];
|
|
|
|
gemFlags = "--no-rdoc --no-ri";
|
|
|
|
};
|
2012-01-10 23:50:31 +00:00
|
|
|
|
|
|
|
rjb = {
|
|
|
|
buildInputs = [ jdk ];
|
|
|
|
JAVA_HOME = jdk;
|
|
|
|
};
|
2012-02-26 11:10:00 +00:00
|
|
|
|
|
|
|
buildr = {
|
|
|
|
# Many Buildfiles rely on RUBYLIB containing the current directory
|
|
|
|
# (as was the default in Ruby < 1.9.2).
|
|
|
|
extraWrapperFlags = "--prefix RUBYLIB : .";
|
|
|
|
};
|
|
|
|
|
2011-01-21 08:25:02 +00:00
|
|
|
}
|