anchor.diff:        --prefix LD_LIBRARY_PATH : ${stdenv.lib.makeLibraryPath [libGL libglvnd]} \
         --prefix PATH : ${git}/bin
   
  -    mkdir -p $out/share/dbus-1/services/
  -    cat <<END > $out/share/dbus-1/services/org.anbox.service
  -    [D-BUS Service]
  -    Name=org.anbox
  -    Exec=$out/libexec/anbox-session-manager
  -    END
  +    mkdir -p $out/share/dbus-1/services
  +    substitute ${dbus-service} $out/share/dbus-1/services/org.anbox.service \
  +      --subst-var out
   
       mkdir $out/libexec
  -    cat > $out/libexec/anbox-session-manager <<EOF
  -    #!${stdenv.shell}
  -    exec $out/bin/anbox session-manager
  -    EOF
  -    chmod +x $out/libexec/anbox-session-manager
  +    makeWrapper $out/bin/anbox $out/libexec/anbox-session-manager \
  +      --add-flags session-manager
   
  -    cat > $out/bin/anbox-application-manager <<EOF
  -    #!${stdenv.shell}
  -    ${systemd}/bin/busctl --user call \
  -      org.freedesktop.DBus \
  -      /org/freedesktop/DBus \
  -      org.freedesktop.DBus \
  -      StartServiceByName "su" org.anbox 0
  -
  -    $out/bin/anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity
  -    EOF
  -    chmod +x $out/bin/anbox-application-manager
  +    substitute ${anbox-application-manager} $out/bin/anbox-application-manager \
  +      --subst-var out
     '';
   
     passthru.image = let
  
positive.code:     sha256 = "1wfx4bsyxvrjl16dq5pqgial8rnnsnxzbak2ap0waddz847czxwz";
    };
  
    buildInputs = [
      cmake pkgconfig dbus boost libcap gtest systemd mesa glib
      SDL2 SDL2_image protobuf protobufc properties-cpp lxc python
      makeWrapper libGL
    ];
  
    patchPhase = ''
  
negative.code: 
    meta = with stdenv.lib; {
      homepage = https://anbox.io;
      description = "Android in a box";
      license = licenses.gpl2;
      maintainers = with maintainers; [ edwtjo ];
      platforms = platforms.linux;
  