anchor.diff:    ] ++ lib.optionals enableShared [
       python3.pkgs.python
       python3.pkgs.numpy
  +  ] ++ lib.optionals enableFlight [
  +    grpc
  +    libnsl
  +    openssl
  +    protobuf
     ];
   
     preConfigure = ''
  
positive.code:     # Parquet options:
      "-DARROW_PARQUET=ON"
      "-DPARQUET_BUILD_EXECUTABLES=ON"
    ] ++ lib.optionals (!enableShared) [
      "-DARROW_TEST_LINKAGE=static"
    ] ++ lib.optionals stdenv.isDarwin [
  
negative.code: { stdenv
  , lib
  , fetchurl
  , fetchFromGitHub
  , fixDarwinDylibNames
  , autoconf
  , boost
  , brotli
  , c-ares
  , cmake
  , flatbuffers
  , gflags
  , glog
  , grpc
  , gtest
  , jemalloc
  , libnsl
  , lz4
  , openssl
  , perl
  , protobuf
  , python3
  , rapidjson
  , re2
  , snappy
  , thrift
  , tzdata
  , utf8proc
  , which
  , zlib
  , zstd
  , enableShared ? !stdenv.hostPlatform.isStatic
  , enableFlight ? !stdenv.isDarwin # libnsl is not supported on darwin
  }:
  
  let
  