anchor.diff:  
       dontStrip = target != "release";
   
  -    buildPhase = lib.optionalString withDedicated ''
  +    postConfigure = ''
  +      pushd ../d0_blind_id
  +      ./configure $configureFlags
  +      popd
  +    '';
  +
  +    buildPhase = (lib.optionalString withDedicated ''
         make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES sv-${target}
       '' + lib.optionalString withGLX ''
         make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES cl-${target}
       '' + lib.optionalString withSDL ''
         make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES sdl-${target}
  +    '') + ''
  +      pushd ../d0_blind_id
  +      make -j $NIX_BUILD_CORES -l $NIX_BUILD_CORES
  +      popd
       '';
   
       enableParallelBuilding = true;
   
  -    installPhase = ''
  +    installPhase = (''
         for size in 16x16 24x24 32x32 48x48 64x64 72x72 96x96 128x128 192x192 256x256 512x512 1024x1024 scalable; do
           install -Dm644 ../../misc/logos/xonotic_icon.svg \
             $out/share/icons/hicolor/$size/xonotic.svg
  
positive.code:       install -Dm755 darkplaces-glx "$out/bin/xonotic-glx"
      '' + lib.optionalString withSDL ''
        install -Dm755 darkplaces-sdl "$out/bin/xonotic-sdl"
      '';
  
      # Xonotic needs to find libcurl.so at runtime for map downloads
  
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 ];
  
  