2013-02-08 14:19:33 +00:00
|
|
|
{ stdenv, fetchurl, unzip, jzmq, jdk, lib, python, logsDir, confDir }:
|
2013-02-07 14:32:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "storm-0.8.2";
|
|
|
|
src = fetchurl {
|
|
|
|
url = https://dl.dropbox.com/u/133901206/storm-0.8.2.zip;
|
|
|
|
sha256 = "8761aea0b54e5bab4a68b259bbe6b5b2f8226204488b5559eba57a0c458b2bbc";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ unzip jzmq ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
# Remove junk
|
|
|
|
rm -f lib/jzmq*
|
2013-02-08 14:19:33 +00:00
|
|
|
mkdir -p $out/bin
|
2013-02-07 14:32:10 +00:00
|
|
|
mv bin/storm $out/bin/
|
2013-02-08 14:19:33 +00:00
|
|
|
rm -R bin conf logs
|
2013-02-07 14:32:10 +00:00
|
|
|
|
|
|
|
# Fix shebang header for python scripts
|
2013-02-08 14:19:33 +00:00
|
|
|
sed -i -e "s|#!/usr/bin/.*python|#!${python}/bin/python|" $out/bin/storm;
|
2013-02-07 14:32:10 +00:00
|
|
|
|
|
|
|
mkdir -p $out
|
|
|
|
cp -av * $out
|
2013-02-08 14:19:33 +00:00
|
|
|
cd $out;
|
|
|
|
${if logsDir != "" then ''ln -s ${logsDir} logs'' else ""}
|
|
|
|
${if confDir != "" then ''ln -s ${confDir} conf'' else ""}
|
2013-02-07 14:32:10 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
dontStrip = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://storm-project.net";
|
|
|
|
description = "Storm, free and open source distributed realtime computation system.";
|
|
|
|
license = "Eclipse Public License 1.0";
|
|
|
|
maintainers = [ lib.maintainers.blue ];
|
|
|
|
};
|
|
|
|
}
|