summary refs log tree commit diff
path: root/pkgs/servers/nsq/default.nix
blob: 9810250943c4c023d7c9daf558f7406f5532c50d (plain) (blame)
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
{ lib, goPackages, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:

with goPackages;

buildGoPackage rec {
  version = "0.2.28";
  name = "nsq-${version}";
  goPackagePath = "github.com/bitly/nsq";
  src = fetchFromGitHub {
    owner = "bitly";
    repo = "nsq";
    rev = "v${version}";
    sha256 = "0drmf1j5w3q4l6f7xjy3y7d7cl50gcx0qwci6mahxsyaaclx60yx";
  };

  subPackages = [ "nsqadmin" ] ++
                map (x: "apps/"+x) [ "nsq_pubsub" "nsq_stat" "nsq_tail"
                                     "nsq_to_file" "nsq_to_http" "nsq_to_nsq"
                                     "nsqd" "nsqlookupd" ];

  buildInputs = [ go-nsq go-options toml perks go-hostpool ];

  meta = with lib; {
    description = "A realtime distributed messaging platform";
    homepage = http://nsq.io/;
    license = licenses.mit;
    maintainers = with maintainers; [ cstrahan ];
    platforms = platforms.unix;
  };
}