anchor.diff:    };
     hadoop_3_2 = common rec {
       pname = "hadoop";
  -    versions.x86_64-linux = "3.2.3";
  -    hash.x86_64-linux = "sha256-Q2/a1LcKutpJoGySB0qlCcYE2bvC/HoG/dp9nBikuNU=";
  +    platformAttrs.x86_64-linux = {
  +      version = "3.2.3";
  +      hash = "sha256-Q2/a1LcKutpJoGySB0qlCcYE2bvC/HoG/dp9nBikuNU=";
  +    };
       jdk = jdk8_headless;
       # not using native libs because of broken openssl_1_0_2 dependency
       # can be manually overriden
  
positive.code:   # https://cwiki.apache.org/confluence/display/HADOOP/Hadoop+Java+Versions
    hadoop_3_3 = common rec {
      pname = "hadoop";
      versions = rec {
        x86_64-linux = "3.3.3";
        x86_64-darwin = x86_64-linux;
        aarch64-linux = "3.3.1";
        aarch64-darwin = aarch64-linux;
      };
      untarDir = "${pname}-${version}";
      hash = rec {
        x86_64-linux = "sha256-+nHGG7qkJxKa7wn+wCizTdVCxlrZD9zOxefvk9g7h2Q=";
        x86_64-darwin = x86_64-linux;
        aarch64-linux = "sha256-v1Om2pk0wsgKBghRD2wgTSHJoKd3jkm1wPKAeDcKlgI=";
        aarch64-darwin = aarch64-linux;
      };
      jdk = jdk11_headless;
      inherit openssl;
      # TODO: Package and add Intel Storage Acceleration Library
  
negative.code:   };
    hadoop2 = common rec {
      pname = "hadoop";
      platformAttrs.x86_64-linux = {
        version = "2.10.2";
        hash = "sha256-xhA4zxqIRGNhIeBnJO9dLKf/gx/Bq+uIyyZwsIafEyo=";
      };
      jdk = jdk8_headless;
      tests = nixosTests.hadoop2;
    };
  