anchor.diff: -{ lib, stdenv, fetchzip, fetchFromGitHub, buildFHSUserEnv, makeDesktopItem
  -, copyDesktopItems, gcc, cmake, gmp , libGL, zlib, ncurses, geoip, lua5
  -, nettle, curl, SDL2, freetype, glew , openal, libopus, opusfile, libogg
  -, libvorbis, libjpeg, libwebp, libpng
  -, cacert, aria2 # to download assets
  +{ lib
  +, stdenv
  +, fetchzip
  +, fetchFromGitHub
  +, SDL2
  +, buildFHSUserEnv
  +, cmake
  +, copyDesktopItems
  +, curl
  +, freetype
  +, gcc
  +, geoip
  +, glew
  +, gmp
  +, libGL
  +, libjpeg
  +, libogg
  +, libopus
  +, libpng
  +, libvorbis
  +, libwebp
  +, lua5
  +, makeDesktopItem
  +, ncurses
  +, nettle
  +, openal
  +, opusfile
  +, zlib
  +# to download assets
  +, aria2
  +, cacert
   }:
   
   let
  
positive.code: 
    libstdcpp-preload-for-unvanquished-nacl = stdenv.mkDerivation {
      name = "libstdcpp-preload-for-unvanquished-nacl";
      buildCommand = ''
        mkdir $out/etc -p
        echo ${gcc.cc.lib}/lib/libstdc++.so.6 > $out/etc/ld-nix.so.preload
      '';
      propagatedBuildInputs = [ gcc.cc.lib ];
    };
  
    fhsEnv = buildFHSUserEnv {
      name = "unvanquished-fhs-wrapper";
      targetPkgs = pkgs: [ libstdcpp-preload-for-unvanquished-nacl ];
    };
  
  
negative.code: 
      runHook postInstall
    '';
  
    meta = {
      homepage = "https://unvanquished.net/";
      downloadPage = "https://unvanquished.net/download/";
      description = "A fast paced, first person strategy game";
      # don't replace the following lib.licenses.zlib with just "zlib",
      # or you would end up with the package instead
      license = with lib.licenses; [
        mit gpl3Plus lib.licenses.zlib bsd3 # engine
        cc-by-sa-25 cc-by-sa-30 cc-by-30 cc-by-sa-40 cc0 # assets
      ];
      maintainers = with lib.maintainers; [ afontain ];
      platforms = [ "x86_64-linux" ];
    };
  }
  