anchor.diff:      copyDesktopItems
     '' + ''
       for binary in $out/bin/xonotic-*; do
  -      wrapProgram $binary --add-flags "-basedir ${xonotic-data}"
  +      wrapProgram $binary --add-flags "-basedir ${xonotic-data}" --prefix LD_LIBRARY_PATH : "${xonotic-unwrapped}/lib"
       done
     '');
   }
  
positive.code:   xonotic-data = fetchzip {
      name = "xonotic-data";
      url = "https://dl.xonotic.org/xonotic-${version}.zip";
      sha256 = "1ygkh0v68y4sd1w5vpk8dgb65h5jm599hwszdfgjp3ax4d3ml81x";
      extraPostFetch = ''
        cd $out
        rm -rf $(ls | grep -v "^data$")
      '';
      meta.hydraPlatforms = [];
      passthru.version = version;
  
negative.code:     };
  
      nativeBuildInputs = [ unzip ];
      buildInputs = [ libjpeg zlib libvorbis curl gmp ]
        ++ lib.optional withGLX [ libX11.dev libGLU.dev libGL.dev libXpm.dev libXext.dev libXxf86vm.dev alsa-lib.dev ]
        ++ lib.optional withSDL [ SDL2.dev ];
  
  