Skip to content

Conversation

r6915ee
Copy link
Contributor

@r6915ee r6915ee commented Sep 17, 2025

Codename has upgraded to Haxe 4.3.7 as the minimum recommended version, and the repository has moved some files around. The Nix shell configuration has been updated as a result.

The changes provided in this pull request include removing the version lock, and changing how the library-updating shell script is run.

Codename has upgraded to Haxe 4.3.7 as the minimum recommended version,
and the repository has moved some files around. The Nix shell
configuration has been updated as a result.

Do note that this is only a partial refactor, due to changes on the
UNIX setup file being awaited, as a result of a bug. Alongside this,
although the game compiles normally using this commit's configuration,
the Nix shell configuration uses an outdated Haxe version (4.3.6),
due to 4.3.7 not being available in Nixpkgs at the moment.

An overlay is commented out of the configuration; the reason for this
is that although the download is fine, Nix will attempt to compile the
derivation by default, and Haxe does not appear to compile properly
using that overlay.
@r6915ee
Copy link
Contributor Author

r6915ee commented Sep 17, 2025

Do note that the library update shell script is currently not run as part of the shell script. The reason for this is because of the same issue with directories that #769 attempts to solve, where the directory appears to be malformed when running as part of the Nix shell hook that is run on shell startup, although the two branches have nothing to do with each other.

Possible solutions for that problem on Nix's side could include running the command line program directly, or executing the script like a program.

Additionally, the Haxe version provided is outdated. The reason for this is that Nixpkgs does not provide Haxe 4.3.7 at the moment, despite the version releasing in May of this year. An overlay is present in the code but in a commented state, due to compilation errors on the OCaml side of Haxe. Patches may be necessary, although I don't think that I can provide these patches (I have never used OCaml before).

These two factors are why this pull request, as of writing, is a draft pull request.

@r6915ee
Copy link
Contributor Author

r6915ee commented Sep 21, 2025

The mentioned pull request is merged; I'll see if I can update the shell hook to use the newer shell script now.

@r6915ee
Copy link
Contributor Author

r6915ee commented Sep 21, 2025

The shell script issue has been resolved now. It's just either setting up an overlay properly, using a community overlay, or waiting until Nixpkgs has the package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants