Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, fetchurl, unzip, libXcursor, libXext, libX11, libXrandr,
- libXinerama, openal, mesa_glu, writeScript, buildFHSUserEnv}:
- let xp11 = stdenv.mkDerivation rec {
- name = "xplane11";
- buildInputs = [ unzip ];
- src = fetchurl {
- url = "http://www.x-plane.com/update/installers11/X-Plane11InstallerLinux.zip";
- sha256 = "16k0k782fjlj7sznx84nrk8npxh7b9jv0v3jxm8c6h5d6w4dyqsg";
- };
- unpackPhase = ''unzip $src'';
- installPhase = ''
- ls -al
- mkdir -p $out/bin
- cp "X-Plane 11 Installer Linux" $out/bin/xplane11
- '';
- };
- in buildFHSUserEnv rec {
- name = "xplane11";
- targetPkgs = pkgs: with pkgs; [
- xp11
- mesa_glu
- libXcursor
- libXext
- libX11
- libXrandr
- libXinerama
- openal
- ];
- runScript = "xplane11";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement