summary refs log tree commit diff
path: root/pkgs/tools/games/minecraft
diff options
context:
space:
mode:
authorIvarWithoutBones <ivar.scholten@protonmail.com>2021-07-09 02:00:07 +0200
committerIvarWithoutBones <ivar.scholten@protonmail.com>2021-07-09 03:17:28 +0200
commita967c845c54de472283d47410679fcad9648ce7b (patch)
tree93a60e38e7ae8884312bc5b18f7586651d6a1716 /pkgs/tools/games/minecraft
parent91f13012c587af0eb54caf3bb6b06346ab940b66 (diff)
downloadnixpkgs-a967c845c54de472283d47410679fcad9648ce7b.tar
nixpkgs-a967c845c54de472283d47410679fcad9648ce7b.tar.gz
nixpkgs-a967c845c54de472283d47410679fcad9648ce7b.tar.bz2
nixpkgs-a967c845c54de472283d47410679fcad9648ce7b.tar.lz
nixpkgs-a967c845c54de472283d47410679fcad9648ce7b.tar.xz
nixpkgs-a967c845c54de472283d47410679fcad9648ce7b.tar.zst
nixpkgs-a967c845c54de472283d47410679fcad9648ce7b.zip
amidst: move to pkgs/tools/games/minecraft
Diffstat (limited to 'pkgs/tools/games/minecraft')
-rw-r--r--pkgs/tools/games/minecraft/amidst/default.nix34
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 00000000000..8ec65a1dd39
--- /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;
+  };
+}