mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2026-05-02 04:33:15 +02:00
36 lines
883 B
Nix
36 lines
883 B
Nix
{ lib, stdenvNoCC, fetchurl, makeWrapper, jre25_minimal }:
|
|
let
|
|
jre = jre25_minimal;
|
|
in
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "bluemap";
|
|
version = "5.20";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v${version}/BlueMap-${version}-cli.jar";
|
|
hash = "sha256-txDN/vG429BHT09TrSB8uQhmB8irrmvvOXX4OX3OSC0=";
|
|
};
|
|
|
|
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 ];
|
|
mainProgram = "bluemap";
|
|
};
|
|
}
|