diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2023-08-28 09:57:10 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2023-09-02 23:21:02 +0200 |
commit | 8c2717b70182744fcadfeb221eae1c19bb395f12 (patch) | |
tree | 041b58414324f38a009edf04ec5f01ed67d58137 /pkgs/tools/games | |
parent | 3fabe187426a3c69899b09347a11a6ec2c01e3a0 (diff) |
mcaselector: init at 2.2.2
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'pkgs/tools/games')
-rw-r--r-- | pkgs/tools/games/minecraft/mcaselector/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/tools/games/minecraft/mcaselector/default.nix b/pkgs/tools/games/minecraft/mcaselector/default.nix new file mode 100644 index 0000000000000..0cf48dbe0b6b3 --- /dev/null +++ b/pkgs/tools/games/minecraft/mcaselector/default.nix @@ -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; + }; +}) |