nixpkgs/pkgs/tools/misc/wakapi/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
909 B
Nix
Raw Normal View History

2023-01-30 23:09:26 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "wakapi";
2023-12-29 10:13:17 +00:00
version = "2.10.2";
2023-01-30 23:09:26 +00:00
src = fetchFromGitHub {
owner = "muety";
repo = pname;
rev = version;
2023-12-29 10:13:17 +00:00
sha256 = "sha256-ecbWP6WnFCMCnk8o3A0UUdMj8cSmKm5KD/gVN/AVvIY=";
2023-01-30 23:09:26 +00:00
};
2023-12-29 10:13:17 +00:00
vendorHash = "sha256-RG6lc2axeAAPHLS1xRh8gpV/bcnyTWzYcb1YPLpQ0uQ=";
2023-01-30 23:09:26 +00:00
# Not a go module required by the project, contains development utilities
excludedPackages = [ "scripts" ];
# Fix up reported version
postPatch = ''echo ${version} > version.txt'';
2023-01-30 23:09:26 +00:00
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "wakapi";
2023-01-30 23:09:26 +00:00
};
}