mcaselector: init at 2.2.2
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
3fabe18742
commit
8c2717b701
2 changed files with 47 additions and 0 deletions
41
pkgs/tools/games/minecraft/mcaselector/default.nix
Normal file
41
pkgs/tools/games/minecraft/mcaselector/default.nix
Normal 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;
|
||||
};
|
||||
})
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue