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
···
1
1
+
{
2
2
+
lib,
3
3
+
buildGoModule,
4
4
+
fetchFromGitHub,
5
5
+
writableTmpDirAsHomeHook,
6
6
+
}:
7
7
+
8
8
+
buildGoModule rec {
9
9
+
pname = "emitter";
10
10
+
version = "3.1";
11
11
+
12
12
+
src = fetchFromGitHub {
13
13
+
owner = "emitter-io";
14
14
+
repo = "emitter";
15
15
+
tag = "v${version}";
16
16
+
hash = "sha256-eWBgRG0mLdiJj1TMSAxYPs+8CqLNaFUOW6/ghDn/zKE=";
17
17
+
};
18
18
+
19
19
+
vendorHash = "sha256-6K9KAvb+05nn2pFuVDiQ9IHZWpm+q01su6pl7CxXxBY=";
20
20
+
21
21
+
nativeCheckInputs = [ writableTmpDirAsHomeHook ];
22
22
+
23
23
+
ldflags = [
24
24
+
"-X github.com/emitter-io/emitter/internal/command/version.version=${version}"
25
25
+
"-X github.com/emitter-io/emitter/internal/command/version.commit=${src.rev}"
26
26
+
];
27
27
+
28
28
+
doCheck = true;
29
29
+
30
30
+
checkFlags = [
31
31
+
# Tests require network access
32
32
+
"-skip=^Test(NewClient|Statsd_BadSnapshot|Statsd_Configure|Join|Random)$"
33
33
+
];
34
34
+
35
35
+
__darwinAllowLocalNetworking = true;
36
36
+
37
37
+
meta = {
38
38
+
description = "High performance, distributed and low latency publish-subscribe platform";
39
39
+
homepage = "https://emitter.io/";
40
40
+
license = lib.licenses.agpl3Plus;
41
41
+
maintainers = with lib.maintainers; [ sikmir ];
42
42
+
mainProgram = "emitter";
43
43
+
};
44
44
+
}