anchor.diff:  , which
   , bzip2
   , cyrus_sasl
  -, protobuf3_7
  +, protobuf
   , snappy
   , zlib
   , zstd
  
positive.code:     pname = "hadoop";
      platformAttrs = rec {
          x86_64-linux = {
            version = "3.3.3";
            hash = "sha256-+nHGG7qkJxKa7wn+wCizTdVCxlrZD9zOxefvk9g7h2Q=";
          };
          x86_64-darwin = x86_64-linux;
          aarch64-linux = {
  
negative.code:       patchelf --add-rpath ${jdk.home}/lib/server $out/lib/${untarDir}/lib/native/libnativetask.so.1.0.0
        # Java 8 has libjvm.so at a different path
        patchelf --add-rpath ${jdk.home}/jre/lib/amd64/server $out/lib/${untarDir}/lib/native/libnativetask.so.1.0.0
        # NixOS/nixpkgs#193370
        # This workaround is needed to use protobuf 3.19
        patchelf --replace-needed libprotobuf.so.18 libprotobuf.so $out/lib/${untarDir}/lib/native/libhdfspp.so
      '';
      tests = nixosTests.hadoop;
    };
    hadoop_3_2 = common rec {
      pname = "hadoop";
      platformAttrs.x86_64-linux = {
        version = "3.2.4";
        hash = "sha256-qt2gpMr+NHuiVR+/zFRzRyRKG725/ZNBIM69z9J9wNw=";
      };
      jdk = jdk8_headless;
      # not using native libs because of broken openssl_1_0_2 dependency
  