mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 04:13:01 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
36 lines
907 B
Nix
36 lines
907 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "wakapi";
|
|
version = "2.11.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "muety";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-lBjYtb64blFUH/iW/SmC4A7nX9asokvsNKu6QVYgmZ8=";
|
|
};
|
|
|
|
vendorHash = "sha256-Kt7RzAGZeLFhwvq+V6AK88rivqkoTE1Zep7NMh3BXXQ=";
|
|
|
|
# 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 = "Minimalist self-hosted WakaTime-compatible backend for coding statistics";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ t4ccer ];
|
|
mainProgram = "wakapi";
|
|
};
|
|
}
|