anchor.diff:      inherit name src;
       version = lib.getVersion name;
   
  -    is112 = lib.versionAtLeast version "1.12pre";
  +    is20 = lib.versionAtLeast version "2.0pre";
   
       VERSION_SUFFIX = lib.optionalString fromGit suffix;
   
  
positive.code: 
      nativeBuildInputs =
        [ pkgconfig ]
        ++ lib.optionals (!is112) [ perl ]
        ++ lib.optionals fromGit [ autoreconfHook autoconf-archive bison flex libxml2 libxslt docbook5 docbook5_xsl ];
  
      buildInputs = [ curl openssl sqlite xz ]
        ++ lib.optional (stdenv.isLinux || stdenv.isDarwin) libsodium
        ++ lib.optionals fromGit [ brotli ] # Since 1.12
        ++ lib.optional stdenv.isLinux libseccomp
        ++ lib.optional ((stdenv.isLinux || stdenv.isDarwin) && is112)
            (aws-sdk-cpp.override {
              apis = ["s3"];
              customMemoryManagement = false;
  
negative.code:         "--disable-init-state"
          "--enable-gc"
        ]
        ++ lib.optionals (!is20) [
          "--with-dbi=${perlPackages.DBI}/${perl.libPrefix}"
          "--with-dbd-sqlite=${perlPackages.DBDSQLite}/${perl.libPrefix}"
          "--with-www-curl=${perlPackages.WWWCurl}/${perl.libPrefix}"
        ] ++ lib.optionals (is20 && stdenv.isLinux) [
          "--with-sandbox-shell=${sh}/bin/busybox"
        ];
  
  