mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
36 lines
909 B
Nix
36 lines
909 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "wakapi";
|
|
version = "2.10.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "muety";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-ecbWP6WnFCMCnk8o3A0UUdMj8cSmKm5KD/gVN/AVvIY=";
|
|
};
|
|
|
|
vendorHash = "sha256-RG6lc2axeAAPHLS1xRh8gpV/bcnyTWzYcb1YPLpQ0uQ=";
|
|
|
|
# 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 ];
|
|
mainProgram = "wakapi";
|
|
};
|
|
}
|