summary refs log tree commit diff
path: root/pkgs/tools/games
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-28 09:57:10 +0200
committerSefa Eyeoglu <contact@scrumplex.net>2023-09-02 23:21:02 +0200
commit8c2717b70182744fcadfeb221eae1c19bb395f12 (patch)
tree041b58414324f38a009edf04ec5f01ed67d58137 /pkgs/tools/games
parent3fabe187426a3c69899b09347a11a6ec2c01e3a0 (diff)
downloadnixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.tar
nixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.tar.gz
nixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.tar.bz2
nixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.tar.lz
nixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.tar.xz
nixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.tar.zst
nixpkgs-8c2717b70182744fcadfeb221eae1c19bb395f12.zip
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.nix41
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 00000000000..0cf48dbe0b6
--- /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;
+  };
+})