2015-02-19 09:32:02 +00:00
|
|
|
{ stdenv, makeWrapper, jdk, mesos, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-05-14 16:18:17 +01:00
|
|
|
name = "marathon-${version}";
|
2015-05-11 00:56:46 +01:00
|
|
|
version = "0.8.1";
|
2015-02-19 09:32:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-05-11 00:56:46 +01:00
|
|
|
url = "https://downloads.mesosphere.io/marathon/v${version}/marathon-${version}.tgz";
|
|
|
|
sha256 = "1g2z2c8p47rryyappwv0k3najb6bypvwgg7z9z8prvph2x6rafp6";
|
2015-02-19 09:32:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper jdk mesos ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,libexec/marathon}
|
|
|
|
cp target/scala-*/marathon*.jar $out/libexec/marathon/${name}.jar
|
|
|
|
|
|
|
|
makeWrapper ${jdk.jre}/bin/java $out/bin/marathon \
|
|
|
|
--add-flags "-Xmx512m -jar $out/libexec/marathon/${name}.jar" \
|
2015-05-15 18:27:00 +01:00
|
|
|
--prefix "MESOS_NATIVE_JAVA_LIBRARY" : "$MESOS_NATIVE_JAVA_LIBRARY"
|
2015-02-19 09:32:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://mesosphere.github.io/marathon;
|
2015-04-28 09:54:58 +01:00
|
|
|
description = "Cluster-wide init and control system for services in cgroups or Docker containers";
|
2015-02-19 09:32:02 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ rushmorem ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|