2012-01-11 00:49:24 +01:00
|
|
|
{ fetchurl, writeScript, ruby, ncurses, sqlite, libxml2, libxslt, libffi
|
2013-03-15 13:55:48 +01:00
|
|
|
, zlib, libuuid, gems, jdk, python }:
|
2011-01-21 09:25:02 +01:00
|
|
|
|
|
|
|
let
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01: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-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
in
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
{
|
|
|
|
sup = { buildInputs = [ gems.ncursesw ]; };
|
2013-03-15 13:55:48 +01:00
|
|
|
|
|
|
|
libv8 = { buildInputs = [ python ]; };
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
sqlite3 = { propagatedBuildInputs = [ sqlite ]; };
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
rails = { gemFlags = "--no-ri --no-rdoc"; };
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
ncurses = { propagatedBuildInputs = [ ncurses ]; };
|
2013-03-04 16:43:20 +01:00
|
|
|
|
|
|
|
nix = {
|
|
|
|
postInstall = ''
|
|
|
|
cd $out/${ruby.gemPath}/gems/nix*
|
|
|
|
patch -Np1 -i ${./fix-gem-nix-versions.patch}
|
|
|
|
'';
|
|
|
|
};
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
ncursesw = { propagatedBuildInputs = [ ncurses ]; };
|
2012-01-11 00:49:24 +01:00
|
|
|
|
2011-01-21 09:25:02 +01:00
|
|
|
nokogiri = {
|
2012-01-11 00:49:24 +01:00
|
|
|
buildFlags =
|
|
|
|
[ "--with-xml2-dir=${libxml2} --with-xml2-include=${libxml2}/include/libxml2"
|
|
|
|
"--with-xslt-dir=${libxslt}"
|
|
|
|
];
|
2011-01-21 09:25:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ffi = {
|
|
|
|
postUnpack = "onetuh";
|
2012-01-11 00:49:24 +01:00
|
|
|
buildFlags = ["--with-ffi-dir=${libffi}"];
|
2011-01-21 09:25:02 +01:00
|
|
|
NIX_POST_EXTRACT_FILES_HOOK = patchUsrBinEnv;
|
|
|
|
};
|
|
|
|
|
|
|
|
xrefresh_server =
|
2012-01-11 00:49:24 +01:00
|
|
|
let
|
|
|
|
patch = fetchurl {
|
|
|
|
url = "http://mawercer.de/~nix/xrefresh.diff.gz";
|
|
|
|
sha256 = "1f7bnmn1pgkmkml0ms15m5lx880hq2sxy7vsddb3sbzm7n1yyicq";
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
propagatedBuildInputs = [ gems.rb_inotify ];
|
2011-01-21 09:25:02 +01:00
|
|
|
|
2012-01-11 00:49:24 +01:00
|
|
|
# monitor implementation for Linux
|
|
|
|
postInstall = ''
|
|
|
|
cd $out/${ruby.gemPath}/gems/*
|
|
|
|
zcat ${patch} | patch -p 1
|
|
|
|
''; # */
|
|
|
|
};
|
2011-01-21 09:25:02 +01:00
|
|
|
|
|
|
|
xapian_full = {
|
|
|
|
buildInputs = [ gems.rake zlib libuuid ];
|
|
|
|
gemFlags = "--no-rdoc --no-ri";
|
|
|
|
};
|
2012-01-11 00:50:31 +01:00
|
|
|
|
|
|
|
rjb = {
|
|
|
|
buildInputs = [ jdk ];
|
|
|
|
JAVA_HOME = jdk;
|
|
|
|
};
|
2012-02-26 12:10:00 +01: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 09:25:02 +01:00
|
|
|
}
|