11 pname = "goatcounter";
14 src = fetchFromGitHub {
18 hash = "sha256-lwiLk/YYxX4QwSDjpU/mAikumGXYMzleRzmPjZGruZU=";
21 vendorHash = "sha256-YAb3uBWQc6hWzF1Z5cAg8RzJQSJV+6dkppfczKS832s=";
22 subPackages = [ "cmd/goatcounter" ];
25 # Derived from the upstream build scripts:
27 # `-trimpath` is used, which `allowGoReference` sets
28 allowGoReference = true;
29 # Flags set in the upstream build.
33 "-X zgo.at/goatcounter/v2.Version=${src.rev}"
37 moduleTest = nixosTests.goatcounter;
38 version = testers.testVersion {
39 package = goatcounter;
40 command = "goatcounter version";
41 version = "v${version}";
46 description = "Easy web analytics. No tracking of personal data";
47 changelog = "https://github.com/arp242/goatcounter/releases/tag/${src.rev}";
49 GoatCounter is an open source web analytics platform available as a hosted
50 service (free for non-commercial use) or self-hosted app. It aims to offer easy
51 to use and meaningful privacy-friendly web analytics as an alternative to
52 Google Analytics or Matomo.
54 homepage = "https://github.com/arp242/goatcounter";
55 license = lib.licenses.eupl12;
56 maintainers = with lib.maintainers; [ tylerjl ];
57 mainProgram = "goatcounter";