Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / games / mchprs / default.nix
blobfeda0c496f9c73f819a5cfa4ef27e1885d1d0754
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , openssl
6 , sqlite
7 , zlib
8 , stdenv
9 , darwin
12 rustPlatform.buildRustPackage rec {
13   pname = "mchprs";
14   version = "0.4.1";
16   src = fetchFromGitHub {
17     owner = "MCHPR";
18     repo = "MCHPRS";
19     rev = "v${version}";
20     hash = "sha256-y1ILZvnDWVlghvUVe8xU5wP2TMW+Q/l+V+bqDZrpnBk=";
21   };
23   cargoLock = {
24     lockFile = ./Cargo.lock;
25     outputHashes = {
26       "hematite-nbt-0.5.2" = "sha256-knBmH/32JJclhFZbKTNx5XgLSQ2rIrXUGu8uoAHAXMk=";
27     };
28   };
30   nativeBuildInputs = [
31     pkg-config
32     rustPlatform.bindgenHook
33   ];
35   buildInputs = [
36     openssl
37     sqlite
38     zlib
39   ] ++ lib.optionals stdenv.isDarwin [
40     darwin.apple_sdk.frameworks.CoreFoundation
41     darwin.apple_sdk.frameworks.Security
42   ];
44   meta = with lib; {
45     mainProgram = "mchprs";
46     description = "A multithreaded Minecraft server built for redstone";
47     homepage = "https://github.com/MCHPR/MCHPRS";
48     license = licenses.mit;
49     maintainers = with maintainers; [ gdd ];
50   };