anchor.diff:      lib.optional stdenv.hostPlatform.isRiscV ./riscv.patch;
   
     configureFlags =
  -    [ "--enable-cplusplus" ]
  +    [ "--enable-cplusplus" "--with-libatomic-ops=none" ]
       ++ 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";
  +    ++ lib.optional (stdenv.hostPlatform.libc == "musl") "--disable-static";
   
     doCheck = true; # not cross;
   
  
positive.code: { lib, stdenv, fetchurl, fetchpatch, pkgconfig, libatomic_ops
  , enableLargeConfig ? false # doc: https://github.com/ivmai/bdwgc/blob/v7.6.6/doc/README.macros#L179
  }:
  
  
negative.code:     sha256 = "1798rp3mcfkgs38ynkbg2p47bq59pisrc6mn0l20pb5iczf0ssj3";
    };
  
    outputs = [ "out" "dev" "doc" ];
    separateDebugInfo = stdenv.isLinux;
  
  