-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added Dox the haxe documentation generator - mkHeapsGame support buildInputs - Added a simple default haxe shell - Better documentation organisation - Template gives you more useful files - Action only checks if changes on nix files - Format and whitespaces clean-up - Updated flake lock
- Loading branch information
Showing
20 changed files
with
212 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ result* | |
# hashlink build result | ||
*.hl | ||
# hashlink/c out build folder | ||
out* | ||
out* | ||
# MacOS | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
- build and run Heaps games on linux | ||
- build wih latest Haxe, Heaps, etc. | ||
- MacOS (darwin) support | ||
- M1 support (no native heaps game, because HL cannot be built in arm64) | ||
- package haxelibs | ||
- Check flake with github action for PRs | ||
- mkHeapsGame support buildInputs | ||
- Added a simple default haxe shell |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# DONE : | ||
|
||
- build and run Heaps games on linux | ||
- build wih latest Haxe, Heaps, etc. | ||
- MacOS (darwin) support | ||
- M1 support (no native heaps game, because HL cannot be built in arm64) | ||
- package haxelibs | ||
|
||
# TODO : | ||
|
||
- [ ] Github Action | ||
- [X] Check Flake | ||
- [ ] Build Cachix cache | ||
- [ ] Clean, remove `_latest` from package names | ||
- [ ] Other Haxe game engines | ||
- [ ] Godot-Haxe | ||
- [ ] OpenFL | ||
- [ ] Auto-Update through Github Action | ||
- [ ] Clean, remove `_latest` from package names | ||
- [ ] OpenFL |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,4 @@ in (finalAttrs: previousAttrs:{ | |
'' | ||
install_name_tool -add_rpath $out/lib $out/bin/hl | ||
''; | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# dox.nix | ||
# a haxe library for creating beautiful docs | ||
{ pkgs, dox , haxe_latest, haxelib }: | ||
let | ||
# dox haxelib | ||
dox_latest = haxelib.mkHaxelib { | ||
version = "latest"; | ||
libname = "dox"; | ||
src = dox; | ||
meta = { | ||
description = "A Haxe tool to generate Haxe documentation"; | ||
licenses = [pkgs.lib.licenses.mit]; | ||
}; | ||
}; | ||
|
||
# haxedoc : the resulting documentation of a haxe derivation : | ||
# TODO: support for custom Compile.hxml | ||
mkHaxedoc = {haxeDrv, srcDir ? "src", main ? "Main", haxeLibs ? []} : | ||
pkgs.stdenvNoCC.mkDerivation { | ||
# TODO : check/fix versionned names | ||
name = "${haxeDrv.name}-doc"; | ||
src = haxeDrv.src; | ||
buildInputs = [haxe_latest dox_latest] ++ haxeDrv.buildInputs; | ||
unpackPhase = '' | ||
cp -R $src/src/* ./ | ||
''; | ||
buildPhase = '' | ||
ls -la | ||
${haxe_latest}/bin/haxe -xml docs/doc.xml -D doc-gen \ | ||
${builtins.concatStringsSep " " (map (x: "-lib ${x}") haxeLibs)} | ||
haxelib run dox -i docs | ||
''; | ||
installPhase = '' | ||
mkdir -p $out/doc | ||
cp pages/* $out/doc | ||
''; | ||
meta = haxeDrv.meta // { | ||
description = "Documentation of ${haxeDrv.name}"; | ||
}; | ||
}; | ||
|
||
in { | ||
inherit dox_latest mkHaxedoc; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,4 @@ in { | |
src = haxe_format; | ||
version = "latest"; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,4 +42,4 @@ in { | |
src = haxe; | ||
ocaml-ng = pkgs.ocaml-ng.ocamlPackages_4_08; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -52,4 +52,4 @@ in { | |
description = throw "please write meta.description"; | ||
} // (attrs.meta or { }); | ||
}); | ||
} | ||
} |
Oops, something went wrong.