anchor.diff:      cp -v lib/VBoxOGL*.so $out/lib
       mkdir -p $out/lib/dri
       ln -s $out/lib/VBoxOGL.so $out/lib/dri/vboxvideo_dri.so
  -    
  +
       # Install desktop file
       mkdir -p $out/share/autostart
       cp -v share/VBoxGuestAdditions/vboxclient.desktop $out/share/autostart
  
positive.code:     cp -r install/* $out
  
    '';
    
    buildCommand = ''
      ${if stdenv.system == "i686-linux" || stdenv.system == "x86_64-linux" then ''
          isoinfo -J -i $src -x /VBoxLinuxAdditions.run > ./VBoxLinuxAdditions.run
          chmod 755 ./VBoxLinuxAdditions.run
  	./VBoxLinuxAdditions.run --noexec --keep
        ''
        else throw ("Architecture: "+stdenv.system+" not supported for VirtualBox guest additions")
      }
      
      # Unpack files
      cd install
      ${if stdenv.system == "i686-linux" then ''
  
negative.code:     '';
      license = "GPL";
      maintainers = [ lib.maintainers.sander ];
      platforms = lib.platforms.linux;
    };
  }
  