2023-01-30 23:09:26 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "wakapi";
|
2023-10-23 15:13:20 +00:00
|
|
|
version = "2.9.1";
|
2023-01-30 23:09:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "muety";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-10-23 15:13:20 +00:00
|
|
|
sha256 = "sha256-uTDvipz08hrdFB/gAoxVp4Eesh57HOFUG4AD/5T33H8=";
|
2023-01-30 23:09:26 +00:00
|
|
|
};
|
|
|
|
|
2023-10-23 15:13:20 +00:00
|
|
|
vendorHash = "sha256-SqkE4vTT+QoLhKrQcGa2L5WmD+fCX7vli4FjgwLnqjg=";
|
2023-01-30 23:09:26 +00:00
|
|
|
|
|
|
|
# Not a go module required by the project, contains development utilities
|
|
|
|
excludedPackages = [ "scripts" ];
|
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://wakapi.dev/";
|
|
|
|
changelog = "https://github.com/muety/wakapi/releases/tag/${version}";
|
|
|
|
description = "A minimalist self-hosted WakaTime-compatible backend for coding statistics";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ t4ccer ];
|
|
|
|
};
|
|
|
|
}
|