anchor.diff:        --replace '"ip ' '"${iproute}/bin/ip '   \
         --replace '"mount ' '"${utillinux}/bin/mount ' \
         --replace '/bin/sh' "${stdenv.shell}"
  +    
  +    substituteInPlace src/launcher/executor.cpp \
  +      --replace '"sh"' '"${bash}/bin/bash"'
  +    
  +    substituteInPlace src/slave/containerizer/mesos/launch.cpp \
  +      --replace '"sh"' '"${bash}/bin/bash"'
  +    
  +    substituteInPlace src/linux/systemd.cpp \
  +      --replace 'os::realpath("/sbin/init")' '"${systemd}/lib/systemd/systemd"'
     '';
   
     configureFlags = [
  
positive.code:   soext = if stdenv.system == "x86_64-darwin" then "dylib" else "so";
  
  in stdenv.mkDerivation rec {
    version = "0.26.0";
    name = "mesos-${version}";
  
    dontDisableStatic = true;
  
    src = fetchurl {
      url = "mirror://apache/mesos/${version}/${name}.tar.gz";
      sha256 = "0csvaql9gky15w23gmiw6cvlfnrlhfxvdqd2pv3j3grr44ph0ab5";
    };
  
    patches = [
  
negative.code:     homepage    = "http://mesos.apache.org";
      license     = licenses.asl20;
      description = "A cluster manager that provides efficient resource isolation and sharing across distributed applications, or frameworks";
      maintainers = with maintainers; [ cstrahan kevincox offline rushmorem ];
      platforms   = platforms.linux;
    };
  }
  