2015-02-19 09:32:02 +00:00
|
|
|
{ stdenv, makeWrapper, jdk, mesos, fetchurl }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "marathon";
|
2017-04-27 10:14:56 +01:00
|
|
|
version = "1.4.2";
|
2015-02-19 09:32:02 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-08-15 15:13:05 +01:00
|
|
|
url = "https://downloads.mesosphere.com/marathon/v${version}/marathon-${version}.tgz";
|
2017-04-27 10:14:56 +01:00
|
|
|
sha256 = "6eab65a95c87a989e922aca2b49ba872b50a94e46a8fd4831d1ab41f319d6932";
|
2015-02-19 09:32:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper jdk mesos ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,libexec/marathon}
|
2019-08-15 13:41:18 +01:00
|
|
|
cp target/scala-*/marathon*.jar $out/libexec/marathon/${pname}-${version}.jar
|
2015-02-19 09:32:02 +00:00
|
|
|
|
|
|
|
makeWrapper ${jdk.jre}/bin/java $out/bin/marathon \
|
2019-08-15 13:41:18 +01:00
|
|
|
--add-flags "-Xmx512m -jar $out/libexec/marathon/${pname}-${version}.jar" \
|
2016-01-29 16:52:56 +00:00
|
|
|
--set "MESOS_NATIVE_JAVA_LIBRARY" "$MESOS_NATIVE_JAVA_LIBRARY"
|
2015-02-19 09:32:02 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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;
|
2020-03-09 16:21:41 +00:00
|
|
|
maintainers = with maintainers; [ kamilchm pradeepchhetri ];
|
2015-02-19 09:32:02 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|