tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
emitter: init at 3.1
Nikolay Korotkiy
11 months ago
5a574ad2
2806e142
+44
1 changed file
expand all
collapse all
unified
split
pkgs
by-name
em
emitter
package.nix
+44
pkgs/by-name/em/emitter/package.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{
2
+
lib,
3
+
buildGoModule,
4
+
fetchFromGitHub,
5
+
writableTmpDirAsHomeHook,
6
+
}:
7
+
8
+
buildGoModule rec {
9
+
pname = "emitter";
10
+
version = "3.1";
11
+
12
+
src = fetchFromGitHub {
13
+
owner = "emitter-io";
14
+
repo = "emitter";
15
+
tag = "v${version}";
16
+
hash = "sha256-eWBgRG0mLdiJj1TMSAxYPs+8CqLNaFUOW6/ghDn/zKE=";
17
+
};
18
+
19
+
vendorHash = "sha256-6K9KAvb+05nn2pFuVDiQ9IHZWpm+q01su6pl7CxXxBY=";
20
+
21
+
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
22
+
23
+
ldflags = [
24
+
"-X github.com/emitter-io/emitter/internal/command/version.version=${version}"
25
+
"-X github.com/emitter-io/emitter/internal/command/version.commit=${src.rev}"
26
+
];
27
+
28
+
doCheck = true;
29
+
30
+
checkFlags = [
31
+
# Tests require network access
32
+
"-skip=^Test(NewClient|Statsd_BadSnapshot|Statsd_Configure|Join|Random)$"
33
+
];
34
+
35
+
__darwinAllowLocalNetworking = true;
36
+
37
+
meta = {
38
+
description = "High performance, distributed and low latency publish-subscribe platform";
39
+
homepage = "https://emitter.io/";
40
+
license = lib.licenses.agpl3Plus;
41
+
maintainers = with lib.maintainers; [ sikmir ];
42
+
mainProgram = "emitter";
43
+
};
44
+
}