2021-05-28 09:39:13 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, makeWrapper
|
2021-06-28 23:13:55 +00:00
|
|
|
, jre }:
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "amidst";
|
2021-06-28 23:13:55 +00:00
|
|
|
version = "4.7";
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
src = fetchurl { # TODO: Compile from src
|
|
|
|
url = "https://github.com/toolbox4minecraft/amidst/releases/download/v${version}/amidst-v${lib.replaceStrings [ "." ] [ "-" ] version}.jar";
|
2021-06-28 23:13:55 +00:00
|
|
|
sha256 = "sha256-oecRjD7JUuvFym8N/hSE5cbAFQojS6yxOuxpwWRlW9M=";
|
2021-05-28 09:39:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
nativeBuildInputs = [ jre makeWrapper ];
|
2021-05-28 09:39:13 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/{bin,lib/amidst}
|
|
|
|
cp $src $out/lib/amidst/amidst.jar
|
2021-06-28 23:13:55 +00:00
|
|
|
makeWrapper ${jre}/bin/java $out/bin/amidst \
|
2021-05-28 09:39:13 +00:00
|
|
|
--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";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [ binaryBytecode ];
|
2021-05-28 09:39:13 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = [ maintainers.ivar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|