blob: 20858170883775dc6dbd450be4b6b20e17c9ca68 (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
{ lib
, buildGoModule
, fetchFromGitHub
, testers
, goatcounter
}:
buildGoModule rec {
pname = "goatcounter";
version = "2.5.0";
src = fetchFromGitHub {
owner = "arp242";
repo = "goatcounter";
rev = "v${version}";
sha256 = "sha256-lwiLk/YYxX4QwSDjpU/mAikumGXYMzleRzmPjZGruZU=";
};
vendorHash = "sha256-YAb3uBWQc6hWzF1Z5cAg8RzJQSJV+6dkppfczKS832s=";
subPackages = [ "cmd/goatcounter" ];
modRoot = ".";
# Derived from the upstream build scripts:
#
# `-trimpath` is used, which `allowGoReference` sets
allowGoReference = true;
# Flags set in the upstream build.
ldflags = [
"-s"
"-w"
"-X zgo.at/goatcounter/v2.Version=${src.rev}"
];
passthru.tests.version = testers.testVersion {
package = goatcounter;
command = "goatcounter version";
version = "v${version}";
};
meta = {
description = "Easy web analytics. No tracking of personal data";
changelog = "https://github.com/arp242/goatcounter/releases/tag/${src.rev}";
longDescription = ''
GoatCounter is an open source web analytics platform available as a hosted
service (free for non-commercial use) or self-hosted app. It aims to offer easy
to use and meaningful privacy-friendly web analytics as an alternative to
Google Analytics or Matomo.
'';
homepage = "https://github.com/arp242/goatcounter";
license = lib.licenses.eupl12;
maintainers = with lib.maintainers; [ tylerjl ];
mainProgram = "goatcounter";
};
}
|