mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
8c2717b701
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{ 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;
|
|
};
|
|
})
|