anchor.diff:            ln -s ${getLib zlib}/lib/libz.so.1 $out/lib/${untarDir}/lib/native/
             ln -s ${getLib zstd}/lib/libzstd.so.1 $out/lib/${untarDir}/lib/native/
             ln -s ${getLib bzip2}/lib/libbz2.so.1 $out/lib/${untarDir}/lib/native/
  -          patchelf --add-rpath ${jdk.home}/lib/server $out/lib/${untarDir}/lib/native/libnativetask.so.1.0.0
  -        '';
  +        '' + optionalString stdenv.isLinux "patchelf --add-rpath ${jdk.home}/lib/server $out/lib/${untarDir}/lib/native/libnativetask.so.1.0.0";
           jdk = jdk11_headless;
  -      } // optionalAttrs stdenv.isDarwin {
  -        openssl = null;
  -        nativeLibs = [ ];
  -        libPatches = "";
         });
     hadoop_3_2 = common rec {
       pname = "hadoop";
  
positive.code:     jdk = jdk8_headless;
      # not using native libs because of broken openssl_1_0_2 dependency
      # can be manually overriden
      openssl = null;
    };
    hadoop2 = common rec {
      pname = "hadoop";
  
negative.code:       x86_64-linux = "1w31x4bk9f2swnx8qxx0cgwfg8vbpm6cy5lvfnbbpl3rsjhmyg97";
      };
      jdk = jdk8_headless;
    };
  }
  