mirror of
https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
synced 2024-12-04 19:40:07 +01:00
31 lines
833 B
Nix
31 lines
833 B
Nix
{ lib, stdenvNoCC, fetchurl, makeWrapper, jre }:
|
|
|
|
stdenvNoCC.mkDerivation rec {
|
|
pname = "bluemap";
|
|
version = "5.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v${version}/BlueMap-${version}-cli.jar";
|
|
hash = "sha256-4vld+NBwzBxdwbMtsKuqvO6immkbh4HB//6wdjXaxoU=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|