anchor.diff:      sha256 = "1798rp3mcfkgs38ynkbg2p47bq59pisrc6mn0l20pb5iczf0ssj3";
     };
   
  -  buildInputs = [ libatomic_ops ];
  -  nativeBuildInputs = [ pkgconfig ];
  -
     outputs = [ "out" "dev" "doc" ];
     separateDebugInfo = stdenv.isLinux;
   
  
positive.code:     lib.optional stdenv.hostPlatform.isRiscV ./riscv.patch;
  
    configureFlags =
      [ "--enable-cplusplus" ]
      ++ lib.optional enableLargeConfig "--enable-large-config"
      ++ lib.optional (stdenv.hostPlatform.libc == "musl") "--disable-static"
      # Configure script can't detect whether C11 atomic intrinsics are available
      # when cross-compiling, so it links to libatomic_ops, which has to be
      # propagated to all dependencies. To avoid this, assume that the intrinsics
      # are available.
      ++ lib.optional (stdenv.hostPlatform != stdenv.buildPlatform) "--with-libatomic-ops=none";
  
    doCheck = true; # not cross;
  
  
negative.code: { lib, stdenv, fetchurl, fetchpatch
  , enableLargeConfig ? false # doc: https://github.com/ivmai/bdwgc/blob/v7.6.6/doc/README.macros#L179
  }:
  
  