diff --git a/pkgs/default.nix b/pkgs/default.nix index baf074d..3df89c8 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -3,6 +3,7 @@ final: prev: { sources = prev.callPackage (import ./_sources/generated.nix) { }; # then, call packages with `final.callPackage` + hexagon = final.callPackage ./hexagon.nix { }; mcaselector = final.callPackage ./mcaselector.nix { }; nix-modrinth-prefetch = final.callPackage ./nix-modrinth-prefetch.nix { }; olympus = final.callPackage ./olympus.nix { }; diff --git a/pkgs/hexagon.nix b/pkgs/hexagon.nix new file mode 100644 index 0000000..496c006 --- /dev/null +++ b/pkgs/hexagon.nix @@ -0,0 +1,24 @@ +{ lib, fetchFromGitHub, rustPlatform }: + +rustPlatform.buildRustPackage rec { + pname = "hexagon"; + version = "unstable-2023-07-24"; + + src = fetchFromGitHub { + owner = "Master-Bw3"; + repo = pname; + rev = "8a2361b0e3e3deedf4bfda9275390e6c6fc7b335"; + hash = "sha256-hQ5igy9OT+BdYVki/xrIqh12lOboJYPPQmk0BuGqx0o="; + }; + + cargoHash = "sha256-FWY+se0CDavX+kskV3nPRT2lYRRS8MwmM2kbdApA464="; + + doCheck = false; + + meta = with lib; { + description = "Hexagon is a programming language for Hex Casting. Hexagon is a superset of the hexpattern format, adding variables, if statements, and more."; + homepage = "https://github.com/Master-Bw3/Hexagon"; + license = licenses.unfree; + maintainers = with maintainers; [ infinidoge ]; + }; +}