nixpkgs/pkgs/tools/misc/wakapi/default.nix
Stanislav Ochotnický 59ebe39f7b wakapi: 2.9.1 -> 2.9.2
Also fixes version reported on startup and in web UI
2023-10-27 10:38:59 +02:00

35 lines
880 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "wakapi";
version = "2.9.2";
src = fetchFromGitHub {
owner = "muety";
repo = pname;
rev = version;
sha256 = "sha256-BRIcStqRzwoFG9HkWBpfumeCzbrSI0Hg//a0iDQtNw8=";
};
vendorHash = "sha256-SqkE4vTT+QoLhKrQcGa2L5WmD+fCX7vli4FjgwLnqjg=";
# 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 ];
};
}