Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, fetchurl, unzip }:
- let
- getPlatform = arch: if arch == "x86_64-darwin" then "mac" else "linux";
- openjfx = stdenv.mkDerivation rec {
- name = "openjfx-${version}";
- version = "11-0-2";
- src = fetchurl {
- url = "http://gluonhq.com/download/javafx-${version}-sdk-${getPlatform stdenv.targetPlatform}";
- sha256 = "40ef06cd50ea535d45403d9c44e9cb405b631c547734b5b50a6cb7b222293f97";
- # stripRoot = false;
- };
- buildInputs = [ unzip ];
- unpackPhase = "unzip $src";
- installPhase = "mkdir -p $out/lib; cp -r $src $out/lib";
- meta = with stdenv.lib; {
- description = "Open source,client application platform built on Java";
- homepage = https://openjfx.io/;
- downloadPage = https://gluonhq.com/products/javafx/;
- maintainers = with maintainers; [ skykanin ];
- license = licenses.gpl2;
- platforms = with platforms; [ "x86_64-linux" "x86_64-darwin"];
- };
- };
- in openjfx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement