Open desttinghim opened 6 years ago
This works for me with default.nix
below:
{ pkgs ? import <nixpkgs> {} }:
with pkgs;
stdenv.mkDerivation {
name = "haxeapp";
# export paths to be able to run tests
LD_LIBRARY_PATH = with xorg; "${libX11}/lib:${libXext}/lib:${libXinerama}/lib:${libXi}/lib:${libXrandr}/lib:${libglvnd}/lib";
buildInputs = [ stdenv pkgconfig libglvnd ] ++
(with xorg; [ libX11 libXext libXinerama libXi libXrandr ]);
}
As an option you can simply run nix-shell
to test it:
$ nix-shell
$ haxelib run openfl test linux
Of course, you should use wrapProgram
for executables to create final nix derivations (packages).
Thank you for your contributions.
This has been automatically marked as stale because it has had no activity for 180 days.
If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.
Here are suggestions that might help resolve this more quickly:
Issue description
I am trying to do some basic development work with Haxe and OpenFl. I can get OpenFl projects and samples to compile, but I can't get them to run. I get this error:
I asked about this on the OpenFl forums. I found I didn't quite have all the libraries installed, so I installed them. The libraries in question are
libX11
,libXext
,libXinerama
,libXi
andlibxrandr
. Installing these libraries did not seem to help.I then asked on the #nixos irc channel and was guided to set
LD_DEBUG=libs
in the environment. This was the output.Looking at the printout, it looks like ld is unable to find the libraries I had installed, and it looked in the wrong places. I am not sure how to coerce ld into looking for the libraries in the correct locations.
Steps to reproduce
Technical details