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

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

32 lines
802 B
Nix
Raw Normal View History

2023-01-31 00:09:26 +01:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "wakapi";
2023-07-25 07:24:34 +02:00
version = "2.8.1";
2023-01-31 00:09:26 +01:00
src = fetchFromGitHub {
owner = "muety";
repo = pname;
rev = version;
2023-07-25 07:24:34 +02:00
sha256 = "sha256-5EUXhKv4cLDaHr6Q2mel3YbVPAYRJd1JtHyWn7kQy8Y=";
2023-01-31 00:09:26 +01:00
};
2023-07-25 07:24:34 +02:00
vendorHash = "sha256-rwQeIHJAtnRm5nPQCvgoBabVeyLZyrY3yglCW9+NGwM=";
2023-01-31 00:09:26 +01:00
# Not a go module required by the project, contains development utilities
excludedPackages = [ "scripts" ];
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 ];
};
}