-
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.
- Loading branch information
Showing
20 changed files
with
78 additions
and
99 deletions.
There are no files selected for viewing
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
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
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,8 +1,11 @@ | ||
# openal library for hashlink-latest | ||
{ haxe, hl }: | ||
# openal library for hashlink | ||
{ haxe, hashlink, ... }: | ||
haxe.buildHaxelib { | ||
version = hl.version; | ||
pname = "openal"; | ||
src = "${hl.src}/libs/openal"; | ||
meta = hl.meta // { description = "openal support for hashlink-latest"; }; | ||
version = hashlink.version; | ||
pname = "hlopenal"; | ||
src = "${hashlink.src}/libs/openal"; | ||
meta = { | ||
inherit (hashlink.meta) license homepage; | ||
description = "openal support for hashlink"; | ||
}; | ||
} |
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,8 +1,11 @@ | ||
# HLSDL library for hl | ||
{ haxe, hl }: | ||
{ haxe, hashlink, ... }: | ||
haxe.buildHaxelib { | ||
version = hl.version; | ||
version = hashlink.version; | ||
pname = "hlsdl"; | ||
src = "${hl.src}/libs/sdl"; | ||
meta = hl.meta // { description = "sdl2 support for hl"; }; | ||
src = "${hashlink.src}/libs/sdl"; | ||
meta = { | ||
inherit (hashlink.meta) license homepage; | ||
description = "sdl2 support for hashlink"; | ||
}; | ||
} |
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
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
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,9 +1,9 @@ | ||
# heaps/default.nix | ||
# heaps.io is a "game engine" written in haxe | ||
{ callPackage, inputs, hashlink, ... }@args: | ||
{ callPackage, inputs, ... }@args: | ||
let | ||
heaps = callPackage ./generic.nix (args // { | ||
src = inputs.heaps; | ||
version = "2.0.0"; | ||
}); | ||
in { heaps = heaps // (callPackage ./lib.nix (args // {inherit heaps;})); } | ||
in { heaps = heaps // (callPackage ./lib.nix (args // { inherit heaps; })); } |
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,10 +1,11 @@ | ||
# heaps/generic.nix | ||
# Build heaps games with nix | ||
# TODO : remove function mkGame from module (move to separate "lib" module) | ||
{ src, version, haxePackages, haxe, format, hashlink, SDL2, openal, ... }: | ||
{ src, version, haxePackages, haxe, format, hashlink, hlsdl, hlopenal, SDL2 | ||
, openal, ... }: | ||
haxe.buildHaxelib { | ||
inherit src version; | ||
pname = "heaps"; | ||
buildInputs = [ format hashlink SDL2 openal ]; | ||
buildInputs = [ format hashlink SDL2 openal hlsdl hlopenal ]; | ||
meta = haxePackages.heaps.meta; | ||
} |
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
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,13 +1,13 @@ | ||
{ raylib, raylib-hx, haxe, ... }: { | ||
{ stdenv, raylib, raylib-hx, haxe, ... }: { | ||
buildRaylibHxGame = { src, buildHxml ? "Build.hxml", ... }@args: | ||
pkgs.stdenv.mkDerivation ({ | ||
stdenv.mkDerivation ({ | ||
inherit src; | ||
unpackPhase = '' | ||
cp -r $src/* ./ | ||
''; | ||
# build with haxe compiler | ||
buildPhase = '' | ||
${haxe}/bin/haxe ${compileHxml} | ||
${haxe}/bin/haxe ${buildHxml} | ||
''; | ||
} // args); | ||
} |
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,8 +1,7 @@ | ||
# raylib/raylib.nix | ||
# raylib source code for raylib-hx | ||
{ raylib, inputs, ... }: { | ||
raylib = raylib.overrideAttrs (previousAttrs: { | ||
version = "5.0"; | ||
src = inputs.raylib; | ||
}); | ||
} | ||
{ raylib, inputs, ... }: | ||
raylib.overrideAttrs (previousAttrs: { | ||
version = "5.0"; | ||
src = inputs.raylib; | ||
}) |
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,18 +1,20 @@ | ||
# make shell with every thing | ||
{ mkShell, haxe, hashlink-latest, format, hxcpp, heaps, formatter, haxefmt, dox, raylib | ||
, raylib-hx, neko, ... }: | ||
{ mkShell, haxe, format, hxcpp, hashlink, hlsdl, hlopenal, heaps, formatter | ||
, haxefmt, dox, raylib, raylib-hx, neko, ... }: | ||
mkShell { | ||
buildInputs = [ | ||
haxe | ||
hashlink-latest | ||
format | ||
neko | ||
hxcpp | ||
format | ||
hashlink | ||
hlsdl | ||
hlopenal | ||
heaps | ||
formatter | ||
haxefmt | ||
dox | ||
raylib | ||
raylib-hx | ||
neko | ||
]; | ||
} |