mcaselector: init at 2.2.2

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2023-08-28 09:57:10 +02:00
parent 3fabe18742
commit 8c2717b701
No known key found for this signature in database
GPG key ID: E13DFD4B47127951
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{ lib
, stdenvNoCC
, fetchurl
, makeWrapper
, jre
}:
stdenvNoCC.mkDerivation (finalAttrs: {
pname = "mcaselector";
version = "2.2.2";
src = fetchurl {
url = "https://github.com/Querz/mcaselector/releases/download/${finalAttrs.version}/mcaselector-${finalAttrs.version}.jar";
hash = "sha256-tOSdzLFxvEJ9LXliwfosMkgcrQLsrW7qDS8vrgPzQoI=";
};
dontUnpack = true;
dontBuild = true;
nativeBuildInputs = [ jre makeWrapper ];
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,lib/mcaselector}
cp $src $out/lib/mcaselector/mcaselector.jar
makeWrapper ${jre}/bin/java $out/bin/mcaselector \
--add-flags "-jar $out/lib/mcaselector/mcaselector.jar"
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/Querz/mcaselector";
description = "A tool to select chunks from Minecraft worlds for deletion or export";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.mit;
maintainers = [ maintainers.Scrumplex ];
platforms = platforms.linux;
};
})

View file

@ -1858,6 +1858,12 @@ with pkgs;
mbidled = callPackage ../tools/networking/mbidled { };
mcaselector = callPackage ../tools/games/minecraft/mcaselector {
jre = jre.override {
enableJavaFX = true;
};
};
metapixel = callPackage ../tools/graphics/metapixel { };
memos = callPackage ../servers/memos { };