Merge pull request #6121 from boothead/kafka
Kafka and c libraries for kafka and zookeeper
This commit is contained in:
commit
d034aa11ee
|
@ -35,6 +35,7 @@
|
|||
bluescreen303 = "Mathijs Kwik <mathijs@bluescreen303.nl>";
|
||||
bobvanderlinden = "Bob van der Linden <bobvanderlinden@gmail.com>";
|
||||
bodil = "Bodil Stokke <nix@bodil.org>";
|
||||
boothead = "Ben Ford <ben@perurbis.com>";
|
||||
bosu = "Boris Sukholitko <boriss@gmail.com>";
|
||||
calrama = "Moritz Maxeiner <moritz@ucworks.org>";
|
||||
campadrenalin = "Philip Horger <campadrenalin@gmail.com>";
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
{ stdenv, fetchgit, pkgs }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.8.5";
|
||||
name = "rdkafka";
|
||||
|
||||
# Maintenance repo for libtar (Arch Linux uses this)
|
||||
src = fetchgit {
|
||||
url = "https://github.com/edenhill/librdkafka.git";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "05a83hmpz1xmnln0wa7n11ijn08zxijdvpdswyymxbdlg69w31y1";
|
||||
};
|
||||
|
||||
patchPhase = "patchShebangs .";
|
||||
|
||||
buildInputs = [ pkgs.zlib pkgs.perl ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "librdkafka - Apache Kafka C/C++ client library";
|
||||
homepage = "https://github.com/edenhill/librdkafka";
|
||||
license = licenses.bsd2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = [ maintainers.boothead ];
|
||||
};
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
{ stdenv, zookeeper, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "zookeeper_mt";
|
||||
|
||||
src = zookeeper.src;
|
||||
|
||||
setSourceRoot = "export sourceRoot=${zookeeper.name}/src/c";
|
||||
|
||||
buildInputs = [ zookeeper bash ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://zookeeper.apache.org";
|
||||
description = "Apache Zookeeper";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.boothead ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, fetchurl, jre, makeWrapper, bash }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "kafka";
|
||||
version = "0.8.1.1";
|
||||
src = fetchurl {
|
||||
url = "http://www.mirrorservice.org/sites/ftp.apache.org/${name}/${version}/${name}_2.9.2-${version}.tgz";
|
||||
sha256 = "cb141c1d50b1bd0d741d68e5e21c090341d961cd801e11e42fb693fa53e9aaed";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper jre ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out
|
||||
cp -R config libs $out
|
||||
mkdir -p $out/bin
|
||||
cp -R bin/${name}-*.sh $out/bin
|
||||
for i in $out/bin/${name}-*.sh; do
|
||||
wrapProgram $i \
|
||||
--set JAVA_HOME "${jre}" \
|
||||
--prefix PATH : "${bash}/bin"
|
||||
done
|
||||
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://kafka.apache.org";
|
||||
description = "Apache Kafka";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ maintainers.boothead ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
|
||||
}
|
|
@ -7923,6 +7923,8 @@ let
|
|||
|
||||
joseki = callPackage ../servers/http/joseki {};
|
||||
|
||||
kafka = callPackage ../servers/kafka { };
|
||||
|
||||
leafnode = callPackage ../servers/news/leafnode { };
|
||||
|
||||
lighttpd = callPackage ../servers/http/lighttpd { };
|
||||
|
|
Loading…
Reference in New Issue