nixpkgs/pkgs/servers/nsq/default.nix

31 lines
913 B
Nix
Raw Normal View History

2015-02-04 19:01:03 +01:00
{ lib, goPackages, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
2014-06-23 11:43:17 +02:00
2015-02-04 19:01:03 +01:00
with goPackages;
buildGoPackage rec {
2014-06-23 11:43:17 +02:00
version = "0.2.28";
name = "nsq-${version}";
2015-02-04 19:01:03 +01:00
goPackagePath = "github.com/bitly/nsq";
src = fetchFromGitHub {
owner = "bitly";
repo = "nsq";
rev = "v${version}";
sha256 = "0drmf1j5w3q4l6f7xjy3y7d7cl50gcx0qwci6mahxsyaaclx60yx";
2014-06-23 11:43:17 +02:00
};
2015-02-04 19:01:03 +01:00
subPackages = [ "nsqadmin" ] ++
map (x: "apps/"+x) [ "nsq_pubsub" "nsq_stat" "nsq_tail"
"nsq_to_file" "nsq_to_http" "nsq_to_nsq"
"nsqd" "nsqlookupd" ];
2014-06-23 11:43:17 +02:00
2015-02-04 19:01:03 +01:00
buildInputs = [ go-nsq go-options toml perks go-hostpool ];
2014-06-23 11:43:17 +02:00
2015-02-04 19:01:03 +01:00
meta = with lib; {
2014-06-23 11:43:17 +02:00
description = "A realtime distributed messaging platform";
homepage = http://nsq.io/;
license = licenses.mit;
maintainers = with maintainers; [ cstrahan ];
platforms = platforms.unix;
};
}