Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

haxe: add 4.1 and 4.0 compiler versions #118112

Merged
merged 3 commits into from Apr 19, 2021

Conversation

sternenseemann
Copy link
Member

Motivation for this change

Fixes #95638. cc @OPNA2608

Arguably the extlib 1.7.7 override is not ideal, but I don't really want to be stuck with it in ocamlPackages as long as we don't need it for anything else. The compatibility patch from 4.2 unfortunately doesn't even apply on 4.1.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@r-rmcgibbo
Copy link

r-rmcgibbo commented Mar 30, 2021

Result of nixpkgs-review pr 118112 at 108cd8e8 run on aarch64-linux 1

2 packages built successfully:
  • haxe_4_0
  • haxe_4_1

Result of nixpkgs-review pr 118112 at 108cd8e8 run on x86_64-linux 1

2 packages built successfully:
  • haxe_4_0
  • haxe_4_1
1 suggestion:
  • warning: missing-phase-hooks

    installPhase should probably contain runHook preInstall and runHook postInstall.

    Near pkgs/development/compilers/haxe/default.nix:63:7:

       |
    63 |       installPhase = ''
       |       ^
    

@OPNA2608
Copy link
Contributor

Sorry for the late response! Tested haxe_4_1 and haxe_4_0 with a game project, both worked fine.

Copy link
Contributor

@OPNA2608 OPNA2608 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tiny nitpick, otherwise looks good IMO.

pkgs/development/compilers/haxe/default.nix Outdated Show resolved Hide resolved
Unfortunately there's no way to get Haxe 4.0 and 4.1 to work with extlib
1.7.8 (not even without the minimal install), so we need to package
1.7.7 again, at least until 1.7.9 (?) brings backwards compatibility
packages, hopefully.
@sternenseemann
Copy link
Member Author

@ofborg build haxe_4_0 haxe_4_1 ocamlPackages.ocaml_extlib ocamlPackages.ocaml_extlib-1-7-7

@sternenseemann sternenseemann merged commit 56ba373 into NixOS:master Apr 19, 2021
@sternenseemann sternenseemann deleted the haxe-4.1-4.0 branch April 19, 2021 12:42
sternenseemann referenced this pull request Apr 19, 2021
Unfortunately there's no way to get Haxe 4.0 and 4.1 to work with extlib
1.7.8 (not even without the minimal install), so we need to package
1.7.7 again, at least until 1.7.9 (?) brings backwards compatibility
packages, hopefully.
@sternenseemann sternenseemann restored the haxe-4.1-4.0 branch July 24, 2021 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Haxe Version to 4.1.3
3 participants