aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/tools/networking/rcon/default.nix
blob: f7cd08e197e87fa7ed0cfae81b521b314c7875dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{ stdenv, fetchFromGitHub, cmake, pkg-config, glib, libbsd, check, pcre }:

stdenv.mkDerivation rec {
  pname = "rcon";
  version = "0.5";

  src = fetchFromGitHub {
    owner = "n0la";
    repo = "rcon";
    rev = version;
    sha256 = "1jsnmsm2qkiv8dan1yncx0qp6zfkcbyvf81c7xwpv6r499ijw1nb";
  };

  nativeBuildInputs = [ cmake pkg-config ];

  buildInputs = [
    glib
    libbsd
    check
    pcre
  ];

  meta = with stdenv.lib; {
    homepage = "https://github.com/n0la/rcon";
    description = "Source RCON client for command line";
    maintainers = with maintainers; [ f4814n ];
    platforms = with platforms; linux ++ darwin;
    license = licenses.bsd2;
  };
}