Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
30 lines
838 B
Nix
30 lines
838 B
Nix
{ lib, stdenvNoCC, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "bluemap";
|
|
version = "5.4";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v${version}/BlueMap-${version}-cli.jar";
|
|
hash = "sha256-ycgCYot3lTdkufJdOSX/PMWI2fnAWz8f5I9IWZpKppw=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
makeWrapper ${jre}/bin/java $out/bin/bluemap --add-flags "-jar $src"
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
description = "3D minecraft map renderer";
|
|
homepage = "https://bluemap.bluecolored.de/";
|
|
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dandellion h7x4 ];
|
|
mainProgram = "bluemap";
|
|
};
|
|
}
|