nixpkgs/pkgs/by-name/wa/wakapi/package.nix

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

45 lines
977 B
Nix
Raw Normal View History

2024-09-09 13:17:09 +00:00
{
lib,
2024-10-13 23:12:35 +00:00
buildGoModule,
2024-09-09 13:17:09 +00:00
fetchFromGitHub,
}:
let
2024-11-04 22:37:14 +00:00
version = "2.12.2";
2024-09-09 13:17:09 +00:00
in
2024-10-13 23:12:35 +00:00
buildGoModule {
2024-09-09 13:17:09 +00:00
pname = "wakapi";
inherit version;
2023-01-30 23:09:26 +00:00
src = fetchFromGitHub {
owner = "muety";
2024-09-09 13:17:09 +00:00
repo = "wakapi";
rev = "refs/tags/${version}";
2024-11-04 22:37:14 +00:00
hash = "sha256-6wlFgIof4uzQ3phd7paHZ6Sezp0Dfj8qFzsudFKfNdU=";
2023-01-30 23:09:26 +00:00
};
2024-11-04 22:37:14 +00:00
vendorHash = "sha256-q5o88fwc1S14ZwGyDS9aFtJMfPZ4pmMjffmeXODhajg=";
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"
];
2024-09-09 13:17:09 +00:00
meta = {
2023-01-30 23:09:26 +00:00
homepage = "https://wakapi.dev/";
changelog = "https://github.com/muety/wakapi/releases/tag/${version}";
description = "Minimalist self-hosted WakaTime-compatible backend for coding statistics";
2024-09-09 13:17:09 +00:00
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
t4ccer
isabelroses
];
2023-11-27 01:17:53 +00:00
mainProgram = "wakapi";
2023-01-30 23:09:26 +00:00
};
}