lol
1{
2 lib,
3 rustPlatform,
4 fetchFromGitHub,
5 pkg-config,
6 openssl,
7 sqlite,
8 zlib,
9}:
10
11rustPlatform.buildRustPackage rec {
12 pname = "mchprs";
13 version = "0.5.1";
14
15 src = fetchFromGitHub {
16 owner = "MCHPR";
17 repo = "MCHPRS";
18 tag = "v${version}";
19 hash = "sha256-Jm9ZsqCKOIxZsXQbCluYu7MgOD7hXYljcv/URaNVUW0=";
20 };
21
22 cargoHash = "sha256-YDfyixNfJsKigf3W5265CWl4ETQDeBHYpquBoFoj4Tw=";
23
24 nativeBuildInputs = [
25 pkg-config
26 rustPlatform.bindgenHook
27 ];
28
29 buildInputs = [
30 openssl
31 sqlite
32 zlib
33 ];
34
35 meta = with lib; {
36 mainProgram = "mchprs";
37 description = "Multithreaded Minecraft server built for redstone";
38 homepage = "https://github.com/MCHPR/MCHPRS";
39 license = licenses.mit;
40 maintainers = with maintainers; [ gdd ];
41 };
42}