anchor.diff:      homepage = "https://github.com/timberio/vector";
       license = with licenses; [ asl20 ];
       maintainers = with maintainers; [ thoughtpolice happysalada ];
  +    platforms = with platforms; linux;
     };
   }
  
positive.code:   # TODO investigate adding "api" "api-client" "vrl-cli" and various "vendor-*"
    # "disk-buffer" is using leveldb TODO: investigate how useful
    # it would be, perhaps only for massive scale?
  , features ? ([ "sinks" "sources" "transforms" ]
      # the second feature flag is passed to the rdkafka dependency
      # building on linux fails without this feature flag (both x86_64 and AArch64)
      ++ lib.optionals enableKafka [ "rdkafka-plain" "rdkafka/dynamic_linking" ]
      ++ lib.optional stdenv.targetPlatform.isUnix "unix")
  }:
  
  let
    pname = "vector";
    version = "0.20.1";
  in
  rustPlatform.buildRustPackage {
    inherit pname version;
  
negative.code:   LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
  
    TZDIR = "${tzdata}/share/zoneinfo";
  
    # needed to dynamically link rdkafka
    CARGO_FEATURE_DYNAMIC_LINKING=1;
  
    buildNoDefaultFeatures = true;
    buildFeatures = features;
  