mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-12-03 09:55:29 -08:00
36 lines
715 B
Nix
36 lines
715 B
Nix
{ stdenv, lib, fetchurl, autoPatchelfHook, unzip, curl, gcc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "minecraft bedrock server";
|
|
version = "1.20.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://minecraft.azureedge.net/bin-linux/bedrock-server-1.20.1.02.zip";
|
|
sha256 = "sha256-H7OAdB1EzcvdGHWRUD/K8/P8rqBkteuxtNdx/Fp2ZTM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoPatchelfHook
|
|
unzip
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
gcc.cc.lib
|
|
];
|
|
|
|
sourceRoot = ".";
|
|
installPhase = ''
|
|
mkdir $out
|
|
mkdir $out/bin
|
|
unzip $src -d $out
|
|
install -m755 -D $out/bedrock_server $out/bin/bedrock-server
|
|
'';
|
|
|
|
|
|
meta = with lib; {
|
|
description = "Minecraft Bedrock Server";
|
|
platforms = platforms.linux;
|
|
};
|
|
|
|
}
|