chromium,chromedriver: 129.0.6668.91 -> 129.0.6668.100
[NixPkgs.git] / pkgs / by-name / wa / wakapi / package.nix
blobace3fbb24141d86996181764bde25b9a23bce17b
2   lib,
3   buildGo123Module,
4   fetchFromGitHub,
5 }:
6 let
7   version = "2.12.0";
8 in
9 buildGo123Module {
10   pname = "wakapi";
11   inherit version;
13   src = fetchFromGitHub {
14     owner = "muety";
15     repo = "wakapi";
16     rev = "refs/tags/${version}";
17     hash = "sha256-/aacT/VLA5S4PeGcxEGaCpgAw++b3VFD7T0CldZWcQI=";
18   };
20   vendorHash = "sha256-Q56Ud0MtkstB/dhn+QyAHTzIqHsmKvHEK+5PAt5lIMM=";
22   # Not a go module required by the project, contains development utilities
23   excludedPackages = [ "scripts" ];
25   # Fix up reported version
26   postPatch = ''echo ${version} > version.txt'';
28   ldflags = [
29     "-s"
30     "-w"
31   ];
33   meta = {
34     homepage = "https://wakapi.dev/";
35     changelog = "https://github.com/muety/wakapi/releases/tag/${version}";
36     description = "Minimalist self-hosted WakaTime-compatible backend for coding statistics";
37     license = lib.licenses.gpl3Only;
38     maintainers = with lib.maintainers; [
39       t4ccer
40       isabelroses
41     ];
42     mainProgram = "wakapi";
43   };