@@ -41,25 +41,43 @@ in stdenv.mkDerivation rec {
4141
4242 preConfigure = ''
4343 substituteInPlace src/Makefile.am --subst-var-by mavenRepo ${mavenRepo}
44+
45+ substituteInPlace 3rdparty/libprocess/include/process/subprocess.hpp \
46+ --replace '"sh"' '"${bash}/bin/bash"'
47+
48+ substituteInPlace 3rdparty/libprocess/3rdparty/stout/include/stout/posix/os.hpp \
49+ --replace '"sh"' '"${bash}/bin/bash"'
4450
51+ substituteInPlace 3rdparty/libprocess/3rdparty/stout/include/stout/os/posix/fork.hpp \
52+ --replace '"sh"' '"${bash}/bin/bash"'
53+
54+ substituteInPlace src/cli/mesos-scp \
55+ --replace "'scp " "'${openssh}/bin/scp "
56+
57+ substituteInPlace src/launcher/executor.cpp \
58+ --replace '"sh"' '"${bash}/bin/bash"'
59+
4560 substituteInPlace src/launcher/fetcher.cpp \
4661 --replace '"gzip' '"${gzip}/bin/gzip' \
4762 --replace '"tar' '"${gnutar}/bin/tar' \
4863 --replace '"unzip' '"${unzip}/bin/unzip'
4964
50− substituteInPlace src/cli/mesos-scp \
51− --replace "'scp " "'${openssh}/bin/scp "
52−
5365 substituteInPlace src/python/cli/src/mesos/cli.py \
5466 --replace "['mesos-resolve'" "['$out/bin/mesos-resolve'"
67+
68+ substituteInPlace src/slave/containerizer/mesos/launch.cpp \
69+ --replace '"sh"' '"${bash}/bin/bash"'
5570
56− '' + lib.optionalString (stdenv.isLinux) ''
71+ '' + lib.optionalString stdenv.isLinux ''
5772
5873 substituteInPlace configure.ac \
5974 --replace /usr/include/libnl3 ${libnl}/include/libnl3
6075
6176 substituteInPlace src/linux/perf.cpp \
6277 --replace '"perf ' '"${perf}/bin/perf '
78+
79+ substituteInPlace src/linux/systemd.cpp \
80+ --replace 'os::realpath("/sbin/init")' '"${systemd}/lib/systemd/systemd"'
6381
6482 substituteInPlace src/slave/containerizer/mesos/isolators/filesystem/shared.cpp \
6583 --replace '"mount ' '"${utillinux}/bin/mount ' \
@@ -72,15 +90,6 @@ in stdenv.mkDerivation rec {
7290 --replace '"ip ' '"${iproute}/bin/ip ' \
7391 --replace '"mount ' '"${utillinux}/bin/mount ' \
7492 --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"'
8493 '';
8594
8695 configureFlags = [