summary refs log blame commit diff
path: root/pkgs/development/compilers/openjdk/darwin/17.nix
blob: 01750e39fe1d33f8ebc48680701e1bfb0c436431 (plain) (tree)
1
2
3
4
5
6
7
8
             
                      




                           
                                                                                         



                                                     

                               
            

                                                                                  



                       

                               
            

                                                                                  

                                    
                                                 
{ callPackage
, enableJavaFX ? false
, stdenv
, ...
}@args:

callPackage ./common.nix ({
  # Details from https://www.azul.com/downloads/?version=java-17-lts&os=macos&package=jdk
  # Note that the latest build may differ by platform
  dist = {
    x86_64-darwin = {
      arch = "x64";
      zuluVersion = "17.44.53";
      jdkVersion = "17.0.8.1";
      hash =
        if enableJavaFX then "sha256-9U0XYZRA+LZTQ7eHrT5SWhgcxv43ajC9n9Tj3qPPLWA="
        else "sha256-ZART6K/o/+D7Tc60U1+1DbnCg8ZGZe67C6aLGeZfSx8=";
    };

    aarch64-darwin = {
      arch = "aarch64";
      zuluVersion = "17.44.53";
      jdkVersion = "17.0.8.1";
      hash =
        if enableJavaFX then "sha256-udYW3nOADclWqVcVtS9dgjSY0w6xf2nsBpLzPmQCYlI="
        else "sha256-MUsEVo7Arps2ugPJy9Qq3J4SZfdGeJI7GSl9ZuuE3Mo=";
    };
  }."${stdenv.hostPlatform.system}";
} // builtins.removeAttrs args [ "callPackage" ])