1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/applications/networking/cluster/marathon/default.nix

31 lines
1 KiB
Nix
Raw Normal View History

2015-02-19 09:32:02 +00:00
{ stdenv, makeWrapper, jdk, mesos, fetchurl }:
stdenv.mkDerivation rec {
name = "marathon-${version}";
2017-02-21 04:52:10 +00:00
version = "1.4.1";
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-02-21 04:52:10 +00:00
sha256 = "1wpzsvvmk19qrwzwj7k12rngry1qriiqnjzq2q2pbpv5w0zb1fz5";
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" \
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; {
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;
2017-02-21 04:52:10 +00:00
maintainers = with maintainers; [ rushmorem kamilchm kevincox pradeepchhetri ];
2015-02-19 09:32:02 +00:00
platforms = platforms.linux;
};
}