pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / games / mchprs / default.nix
blob88d09149c6de0fbe0851d86a5514dbec4d796b30
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   pkg-config,
6   openssl,
7   sqlite,
8   zlib,
9   stdenv,
10   clang,
11   darwin,
14 rustPlatform.buildRustPackage rec {
15   pname = "mchprs";
16   version = "0.5.1";
18   src = fetchFromGitHub {
19     owner = "MCHPR";
20     repo = "MCHPRS";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-Jm9ZsqCKOIxZsXQbCluYu7MgOD7hXYljcv/URaNVUW0=";
23   };
25   cargoLock = {
26     lockFile = ./Cargo.lock;
27     outputHashes = {
28       "hematite-nbt-0.5.2" = "sha256-ohhsMlRLFNesccxhqn0GAiVswcdMldD3gv0AXcviHU8=";
29     };
30   };
32   nativeBuildInputs = [
33     pkg-config
34     clang
35     rustPlatform.bindgenHook
36   ];
38   buildInputs =
39     [
40       openssl
41       sqlite
42       zlib
43     ]
44     ++ lib.optionals stdenv.hostPlatform.isDarwin [
45       darwin.apple_sdk.frameworks.CoreFoundation
46       darwin.apple_sdk.frameworks.Security
47       darwin.apple_sdk.frameworks.SystemConfiguration
48     ];
50   meta = with lib; {
51     mainProgram = "mchprs";
52     description = "Multithreaded Minecraft server built for redstone";
53     homepage = "https://github.com/MCHPR/MCHPRS";
54     license = licenses.mit;
55     maintainers = with maintainers; [ gdd ];
56   };