diff options
author | IvarWithoutBones <ivar.scholten@protonmail.com> | 2021-07-09 02:00:07 +0200 |
---|---|---|
committer | IvarWithoutBones <ivar.scholten@protonmail.com> | 2021-07-09 03:17:28 +0200 |
commit | a967c845c54de472283d47410679fcad9648ce7b (patch) | |
tree | 93a60e38e7ae8884312bc5b18f7586651d6a1716 /pkgs/tools/games/minecraft | |
parent | 91f13012c587af0eb54caf3bb6b06346ab940b66 (diff) |
amidst: move to pkgs/tools/games/minecraft
Diffstat (limited to 'pkgs/tools/games/minecraft')
-rw-r--r-- | pkgs/tools/games/minecraft/amidst/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/tools/games/minecraft/amidst/default.nix b/pkgs/tools/games/minecraft/amidst/default.nix new file mode 100644 index 0000000000000..8ec65a1dd3916 --- /dev/null +++ b/pkgs/tools/games/minecraft/amidst/default.nix @@ -0,0 +1,34 @@ +{ lib +, stdenv +, fetchurl +, makeWrapper +, jre }: + +stdenv.mkDerivation rec { + pname = "amidst"; + version = "4.7"; + + src = fetchurl { # TODO: Compile from src + url = "https://github.com/toolbox4minecraft/amidst/releases/download/v${version}/amidst-v${lib.replaceStrings [ "." ] [ "-" ] version}.jar"; + sha256 = "sha256-oecRjD7JUuvFym8N/hSE5cbAFQojS6yxOuxpwWRlW9M="; + }; + + dontUnpack = true; + + nativeBuildInputs = [ jre makeWrapper ]; + + installPhase = '' + mkdir -p $out/{bin,lib/amidst} + cp $src $out/lib/amidst/amidst.jar + makeWrapper ${jre}/bin/java $out/bin/amidst \ + --add-flags "-jar $out/lib/amidst/amidst.jar" + ''; + + meta = with lib; { + homepage = "https://github.com/toolbox4minecraft/amidst"; + description = "Advanced Minecraft Interface and Data/Structure Tracking"; + license = licenses.gpl3Only; + maintainers = [ maintainers.ivar ]; + platforms = platforms.linux; + }; +} |