@@ -1,7 +1,8 @@
11{ stdenv, lib, makeWrapper, fetchurl, curl, sasl, openssh, autoconf
22, automake115x, libtool, unzip, gnutar, jdk, maven, python, wrapPython
3−, setuptools, boto, pythonProtobuf, apr, subversion, gzip
3+, setuptools, boto, pythonProtobuf, apr, subversion, gzip, systemd
44, leveldb, glog, perf, utillinux, libnl, iproute, openssl, libevent
5+, bash
56}:
67
78let
@@ -9,14 +10,15 @@ let
910 soext = if stdenv.system == "x86_64-darwin" then "dylib" else "so";
1011
1112in stdenv.mkDerivation rec {
12− version = "0.26.0";
13+ version = "0.27.1";
1314 name = "mesos-${version}";
1415
16+ enableParallelBuilding = true;
1517 dontDisableStatic = true;
1618
1719 src = fetchurl {
1820 url = "mirror://apache/mesos/${version}/${name}.tar.gz";
19− sha256 = "0csvaql9gky15w23gmiw6cvlfnrlhfxvdqd2pv3j3grr44ph0ab5";
21+ sha256 = "147iq7vwi09kqblx1h8r6lkrg9g50i257qk1cph1zr5j3rncz7l8";
2022 };
2123
2224 patches = [
@@ -70,6 +72,15 @@ in stdenv.mkDerivation rec {
7072 --replace '"ip ' '"${iproute}/bin/ip ' \
7173 --replace '"mount ' '"${utillinux}/bin/mount ' \
7274 --replace '/bin/sh' "${stdenv.shell}"
75+
76+ substituteInPlace src/launcher/executor.cpp \
77+ --replace '"sh"' '"${bash}/bin/bash"'
78+
79+ substituteInPlace src/slave/containerizer/mesos/launch.cpp \
80+ --replace '"sh"' '"${bash}/bin/bash"'
81+
82+ substituteInPlace src/linux/systemd.cpp \
83+ --replace 'os::realpath("/sbin/init")' '"${systemd}/lib/systemd/systemd"'
7384 '';
7485
7586 configureFlags = [
@@ -114,7 +125,7 @@ in stdenv.mkDerivation rec {
114125 rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*
115126 popd
116127
117− # optional python dependency for mesos cli
128+ # optional python dependency for mesos cli
118129 pushd src/python/cli
119130 ${python}/bin/${python.executable} setup.py install \
120131 --install-lib=$out/lib/${python.libPrefix}/site-packages \
@@ -150,7 +161,7 @@ in stdenv.mkDerivation rec {
150161 homepage = "http://mesos.apache.org";
151162 license = licenses.asl20;
152163 description = "A cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks";
153− maintainers = with maintainers; [ cstrahan offline rushmorem ];
164+ maintainers = with maintainers; [ cstrahan kevincox offline rushmorem ];
154165 platforms = platforms.linux;
155166 };
156167}