From 75a94a5a28b33f6bad29f17c2986f3c173929cd7 Mon Sep 17 00:00:00 2001 From: Robin Stumm Date: Mon, 29 May 2017 20:24:31 +0200 Subject: [PATCH] mcrcon: init at 0.0.5 --- lib/maintainers.nix | 1 + pkgs/tools/networking/mcrcon/default.nix | 33 ++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 36 insertions(+) create mode 100644 pkgs/tools/networking/mcrcon/default.nix diff --git a/lib/maintainers.nix b/lib/maintainers.nix index ad1ba299a530..db40b36fd6a0 100644 --- a/lib/maintainers.nix +++ b/lib/maintainers.nix @@ -132,6 +132,7 @@ deepfire = "Kosyrev Serge <_deepfire@feelingofgreen.ru>"; demin-dmitriy = "Dmitriy Demin "; DerGuteMoritz = "Moritz Heidkamp "; + dermetfan = "Robin Stumm "; DerTim1 = "Tim Digel "; desiderius = "Didier J. Devroye "; devhell = "devhell <\"^\"@regexmail.net>"; diff --git a/pkgs/tools/networking/mcrcon/default.nix b/pkgs/tools/networking/mcrcon/default.nix new file mode 100644 index 000000000000..eda93c82cce8 --- /dev/null +++ b/pkgs/tools/networking/mcrcon/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchFromGitHub }: + +stdenv.mkDerivation rec { + name = "mcrcon-${version}"; + version = "0.0.5"; + + src = fetchFromGitHub { + owner = "Tiiffi"; + repo = "mcrcon"; + rev = "v${version}"; + sha256 = "1pwr1cjldjy8bxqpp7w03nvdpw8l4vqfnk6w6b3mf0qpap1k700z"; + }; + + buildPhase = '' + $CC mcrcon.c -o mcrcon + ''; + + installPhase = '' + install -Dm 755 mcrcon $out/bin/mcrcon + ''; + + meta = { + homepage = https://bukkit.org/threads/admin-rcon-mcrcon-remote-connection-client-for-minecraft-servers.70910/; + description = "Minecraft console client with Bukkit coloring support."; + longDescription = '' + Mcrcon is a powerful Minecraft RCON terminal client with Bukkit coloring support. + It is well suited for remote administration and to be used as part of automated server maintenance scripts. + It does not trigger "IO: Broken pipe" or "IO: Connection reset" spam bugs on the server side. + ''; + maintainers = with stdenv.lib.maintainers; [ dermetfan ]; + license = with stdenv.lib.licenses; [ zlib libpng ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 11e0e16fe475..6d7f5adae997 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -1689,6 +1689,8 @@ with pkgs; eid-viewer = callPackage ../tools/security/eid-viewer { }; + mcrcon = callPackage ../tools/networking/mcrcon {}; + ### DEVELOPMENT / EMSCRIPTEN buildEmscriptenPackage = callPackage ../development/em-modules/generic { };