anchor.diff:  , fetchFromGitHub
   , fetchpatch
   , fetchurl
  -, fetchzip
  +, bzip2
   , cmake
   , pkg-config
   , gettext
  +, libsodium
   , SDL2
  +, SDL_audiolib
   , SDL2_image
   , fmt
   , libpng
  
positive.code:   ];
  
    buildInputs = [
      fmt
      libpng
      SDL2
      SDL2_image
    ];
  
  
negative.code:     substituteInPlace Source/init.cpp --replace "/usr/share/diasurgical/devilutionx/" "${placeholder "out"}/share/diasurgical/devilutionx/"
  
      # download dependencies ahead of time
      substituteInPlace 3rdParty/asio/CMakeLists.txt --replace "${asio.url}" "${asio}"
      substituteInPlace 3rdParty/libmpq/CMakeLists.txt --replace "${libmpq.url}" "${libmpq}"
      substituteInPlace 3rdParty/libsmackerdec/CMakeLists.txt --replace "${libsmackerdec.url}" "${libsmackerdec}"
      substituteInPlace 3rdParty/libzt/CMakeLists.txt \
        --replace "GIT_REPOSITORY https://github.com/diasurgical/libzt.git" "" \
        --replace "GIT_TAG ${libzt.rev}" "SOURCE_DIR ${libzt}"
      substituteInPlace 3rdParty/simpleini/CMakeLists.txt --replace "${simpleini.url}" "${simpleini}"
    '';
  
    cmakeFlags = [
      "-DBINARY_RELEASE=ON"
      "-DVERSION_NUM=${version}"
    ];
  
    nativeBuildInputs = [
  