mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
bluemap: 5.4 -> 5.7 (#357164)
This commit is contained in:
commit
5b840ad984
2 changed files with 4 additions and 28 deletions
|
@ -18,10 +18,6 @@ let
|
|||
) cfg.maps
|
||||
);
|
||||
|
||||
addonsFolder = pkgs.linkFarm "addons" (
|
||||
lib.attrsets.mapAttrs' (name: value: lib.nameValuePair "${name}.jar" value) cfg.addons
|
||||
);
|
||||
|
||||
storageFolder = pkgs.linkFarm "storage" (
|
||||
lib.attrsets.mapAttrs' (
|
||||
name: value: lib.nameValuePair "${name}.conf" (format.generate "${name}.conf" value)
|
||||
|
@ -34,8 +30,7 @@ let
|
|||
"core.conf" = coreConfig;
|
||||
"webapp.conf" = webappConfig;
|
||||
"webserver.conf" = webserverConfig;
|
||||
"packs" = pkgs.linkFarm "packs" cfg.resourcepacks;
|
||||
"addons" = addonsFolder;
|
||||
"packs" = pkgs.linkFarm "packs" cfg.packs;
|
||||
};
|
||||
|
||||
inherit (lib) mkOption;
|
||||
|
@ -46,6 +41,7 @@ in
|
|||
[ "services" "bluemap" "resourcepacks" ]
|
||||
[ "services" "bluemap" "packs" ]
|
||||
)
|
||||
(lib.mkRenamedOptionModule [ "services" "bluemap" "addons" ] [ "services" "bluemap" "packs" ])
|
||||
];
|
||||
|
||||
options.services.bluemap = {
|
||||
|
@ -239,26 +235,6 @@ in
|
|||
'';
|
||||
};
|
||||
|
||||
addons = mkOption {
|
||||
type = lib.types.attrsOf lib.types.pathInStore;
|
||||
default = { };
|
||||
description = ''
|
||||
A set of jar addons to be loaded.
|
||||
|
||||
See <https://bluemap.bluecolored.de/3rdPartySupport.html> for a list of officially recognized addons.
|
||||
'';
|
||||
|
||||
example = lib.literalExpression ''
|
||||
{
|
||||
blueBridge = ./blueBridge.jar;
|
||||
blueBorder = pkgs.fetchurl {
|
||||
url = "https://github.com/pop4959/BlueBorder/releases/download/1.1.1/BlueBorder-1.1.1.jar";
|
||||
hash = "...";
|
||||
};
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
storage = mkOption {
|
||||
type = lib.types.attrsOf (
|
||||
lib.types.submodule {
|
||||
|
|
|
@ -8,11 +8,11 @@
|
|||
|
||||
stdenvNoCC.mkDerivation rec {
|
||||
pname = "bluemap";
|
||||
version = "5.4";
|
||||
version = "5.7";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/BlueMap-Minecraft/BlueMap/releases/download/v${version}/BlueMap-${version}-cli.jar";
|
||||
hash = "sha256-ycgCYot3lTdkufJdOSX/PMWI2fnAWz8f5I9IWZpKppw=";
|
||||
hash = "sha256-8udZYJgrr4bi2mjRYrASd8JwUoUVZW1tZpOLRgafAIw=";
|
||||
};
|
||||
|
||||
dontUnpack = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue