Advertisement
Guest User

openjfx.nix

a guest
Jun 19th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. { stdenv, fetchurl, unzip }:
  2.  
  3. let
  4. getPlatform = arch: if arch == "x86_64-darwin" then "mac" else "linux";
  5. openjfx = stdenv.mkDerivation rec {
  6. name = "openjfx-${version}";
  7. version = "11-0-2";
  8. src = fetchurl {
  9. url = "http://gluonhq.com/download/javafx-${version}-sdk-${getPlatform stdenv.targetPlatform}";
  10. sha256 = "40ef06cd50ea535d45403d9c44e9cb405b631c547734b5b50a6cb7b222293f97";
  11. # stripRoot = false;
  12. };
  13.  
  14. buildInputs = [ unzip ];
  15.  
  16. unpackPhase = "unzip $src";
  17.  
  18. installPhase = "mkdir -p $out/lib; cp -r $src $out/lib";
  19.  
  20. meta = with stdenv.lib; {
  21. description = "Open source,client application platform built on Java";
  22. homepage = https://openjfx.io/;
  23. downloadPage = https://gluonhq.com/products/javafx/;
  24. maintainers = with maintainers; [ skykanin ];
  25. license = licenses.gpl2;
  26. platforms = with platforms; [ "x86_64-linux" "x86_64-darwin"];
  27. };
  28. };
  29. in openjfx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement