nixpkgs/pkgs/applications/networking/cluster/marathon/default.nix

31 lines
1,017 B
Nix
Raw Normal View History

2015-02-19 10:32:02 +01:00
{ stdenv, makeWrapper, jdk, mesos, fetchurl }:
stdenv.mkDerivation rec {
name = "marathon-${version}";
2016-03-06 14:04:32 +01:00
version = "0.15.3";
2015-02-19 10:32:02 +01:00
src = fetchurl {
2015-05-11 01:56:46 +02:00
url = "https://downloads.mesosphere.io/marathon/v${version}/marathon-${version}.tgz";
2016-03-06 14:04:32 +01:00
sha256 = "1br4k596sjp4cf5l2nyaqhlsfdr443n08fvdyf4kilhr803x2rjq";
2015-02-19 10:32:02 +01: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" \
2016-01-29 17:52:56 +01:00
--set "MESOS_NATIVE_JAVA_LIBRARY" "$MESOS_NATIVE_JAVA_LIBRARY"
2015-02-19 10:32:02 +01:00
'';
meta = with stdenv.lib; {
homepage = https://mesosphere.github.io/marathon;
2015-04-28 10:54:58 +02:00
description = "Cluster-wide init and control system for services in cgroups or Docker containers";
2015-02-19 10:32:02 +01:00
license = licenses.asl20;
2016-03-06 14:04:32 +01:00
maintainers = with maintainers; [ rushmorem kamilchm kevincox ];
2015-02-19 10:32:02 +01:00
platforms = platforms.linux;
};
}