Skip to content

Commit

Permalink
wakapi: modernize
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Sep 9, 2024
1 parent c2e3956 commit 7bee8c8
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions pkgs/by-name/wa/wakapi/package.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{ lib, buildGoModule, fetchFromGitHub }:

buildGoModule rec {
pname = "wakapi";
{
lib,
buildGo123Module,
fetchFromGitHub,
}:
let
version = "2.12.0";
in
buildGo123Module {
pname = "wakapi";
inherit version;

src = fetchFromGitHub {
owner = "muety";
repo = pname;
rev = version;
sha256 = "sha256-/aacT/VLA5S4PeGcxEGaCpgAw++b3VFD7T0CldZWcQI=";
repo = "wakapi";
rev = "refs/tags/${version}";
hash = "sha256-/aacT/VLA5S4PeGcxEGaCpgAw++b3VFD7T0CldZWcQI=";
};

vendorHash = "sha256-Q56Ud0MtkstB/dhn+QyAHTzIqHsmKvHEK+5PAt5lIMM=";
Expand All @@ -24,12 +30,15 @@ buildGoModule rec {
"-w"
];

meta = with lib; {
meta = {
homepage = "https://wakapi.dev/";
changelog = "https://github.com/muety/wakapi/releases/tag/${version}";
description = "Minimalist self-hosted WakaTime-compatible backend for coding statistics";
license = licenses.gpl3Only;
maintainers = with maintainers; [ t4ccer ];
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
t4ccer
isabelroses
];
mainProgram = "wakapi";
};
}

0 comments on commit 7bee8c8

Please sign in to comment.