Advertisement
Guest User

Untitled

a guest
Oct 28th, 2017
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. { stdenv, fetchurl, unzip, libXcursor, libXext, libX11, libXrandr,
  2. libXinerama, openal, mesa_glu, writeScript, buildFHSUserEnv}:
  3.  
  4. let xp11 = stdenv.mkDerivation rec {
  5. name = "xplane11";
  6.  
  7. buildInputs = [ unzip ];
  8.  
  9. src = fetchurl {
  10. url = "http://www.x-plane.com/update/installers11/X-Plane11InstallerLinux.zip";
  11. sha256 = "16k0k782fjlj7sznx84nrk8npxh7b9jv0v3jxm8c6h5d6w4dyqsg";
  12. };
  13.  
  14. unpackPhase = ''unzip $src'';
  15.  
  16. installPhase = ''
  17. ls -al
  18. mkdir -p $out/bin
  19. cp "X-Plane 11 Installer Linux" $out/bin/xplane11
  20. '';
  21.  
  22. };
  23. in buildFHSUserEnv rec {
  24. name = "xplane11";
  25.  
  26. targetPkgs = pkgs: with pkgs; [
  27. xp11
  28. mesa_glu
  29. libXcursor
  30. libXext
  31. libX11
  32. libXrandr
  33. libXinerama
  34. openal
  35. ];
  36.  
  37. runScript = "xplane11";
  38. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement