10 # Inspect build flags with `go version -m centrifugo`.
11 statsEndpoint = "https://graphite-prod-01-eu-west-0.grafana.net/graphite/metrics,https://stats.centrifugal.dev/usage";
12 statsToken = "425599:eyJrIjoi" +
13 "OWJhMTcyZGNjN2FkYjEzM2E1OTQwZjIyMTU3MTBjMjUyYzAyZWE2MSIsIm4iOiJVc2FnZSBTdGF0cyIsImlkIjo2NDUzOTN9";
19 src = fetchFromGitHub {
20 owner = "centrifugal";
23 hash = "sha256-rIsc+abyfhHncogxZnx7Dmvc/JRm+L4YKZOOW/Qtddg=";
26 vendorHash = "sha256-+fZnoDH5nbzrGWrr8ayBqzJoAji6y+CYI+TvEISxPRs=";
31 "-X=github.com/centrifugal/centrifugo/v5/internal/build.Version=${version}"
32 "-X=github.com/centrifugal/centrifugo/v5/internal/build.UsageStatsEndpoint=${statsEndpoint}"
33 "-X=github.com/centrifugal/centrifugo/v5/internal/build.UsageStatsToken=${statsToken}"
41 updateScript = nix-update-script { };
43 inherit (nixosTests) centrifugo;
44 version = testers.testVersion {
46 command = "${pname} version";
47 version = "v${version}";
53 description = "Scalable real-time messaging server";
54 homepage = "https://centrifugal.dev";
55 changelog = "https://github.com/centrifugal/centrifugo/releases/tag/v${version}";
56 license = lib.licenses.asl20;
57 maintainers = [ lib.maintainers.tie ];
58 mainProgram = "centrifugo";