@@ -0,0 +1,33 @@
1+{ stdenv, fetchFromGitHub }:
2+
3+stdenv.mkDerivation rec {
4+ name = "mcrcon-${version}";
5+ version = "0.0.5";
6+
7+ src = fetchFromGitHub {
8+ owner = "Tiiffi";
9+ repo = "mcrcon";
10+ rev = "v${version}";
11+ sha256 = "1pwr1cjldjy8bxqpp7w03nvdpw8l4vqfnk6w6b3mf0qpap1k700z";
12+ };
13+
14+ buildPhase = ''
15+ $CC mcrcon.c -o mcrcon
16+ '';
17+
18+ installPhase = ''
19+ install -Dm 755 mcrcon $out/bin/mcrcon
20+ '';
21+
22+ meta = {
23+ homepage = https://bukkit.org/threads/admin-rcon-mcrcon-remote-connection-client-for-minecraft-servers.70910/;
24+ description = "Minecraft console client with Bukkit coloring support.";
25+ longDescription = ''
26+ Mcrcon is a powerful Minecraft RCON terminal client with Bukkit coloring support.
27+ It is well suited for remote administration and to be used as part of automated server maintenance scripts.
28+ It does not trigger "IO: Broken pipe" or "IO: Connection reset" spam bugs on the server side.
29+ '';
30+ maintainers = with stdenv.lib.maintainers; [ dermetfan ];
31+ license = with stdenv.lib.licenses; [ zlib libpng ];
32+ };
33+}