anchor.diff:  
     cmakeFlags = [
       "-DBINARY_RELEASE=ON"
  +    "-DVERSION_NUM=${version}"
     ];
   
     nativeBuildInputs = [ pkg-config cmake ];
  
positive.code: { lib, stdenv, fetchFromGitHub, cmake, SDL2, SDL2_mixer, SDL2_ttf, libsodium, pkg-config }:
  stdenv.mkDerivation rec {
    pname = "devilutionx";
    version = "1.2.0";
  
negative.code:   '' else ''
      install -Dm755 -t $out/bin devilutionx
      install -Dt $out/share/fonts/truetype ../Packaging/resources/CharisSILB.ttf
      install -Dt $out/share/diasurgical/devilutionx ../Packaging/resources/devilutionx.mpq
  
      # TODO: icons and .desktop (see Packages/{debian,fedora}/*)
    '') + ''
  