{ lib, buildGoModule, fetchFromGitHub }: buildGoModule rec { pname = "wakapi"; version = "2.10.3"; src = fetchFromGitHub { owner = "muety"; repo = pname; rev = version; sha256 = "sha256-laJdH2C+lyvM82/r3jgV2CI0xJV39Y04tP1/YCXsGzo="; }; vendorHash = "sha256-/zDlKW00XCI+TyI4RlCIcehQwkken1+SBpieZhfhpwc="; # Not a go module required by the project, contains development utilities excludedPackages = [ "scripts" ]; # Fix up reported version postPatch = ''echo ${version} > version.txt''; 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 ]; mainProgram = "wakapi"; }; }