diff options
-rw-r--r-- | maintainers/maintainer-list.nix | 6 | ||||
-rw-r--r-- | pkgs/by-name/op/openpomodoro-cli/package.nix | 33 |
2 files changed, 39 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 182cb7d7234b7..f91384cccb24c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -7219,6 +7219,12 @@ githubId = 40209356; name = "Gabriel Doriath Döhler"; }; + gdifolco = { + email = "gautier.difolco@gmail.com"; + github = "blackheaven"; + githubId = 1362807; + name = "Gautier Di Folco"; + }; gdinh = { email = "nix@contact.dinh.ai"; github = "gdinh"; diff --git a/pkgs/by-name/op/openpomodoro-cli/package.nix b/pkgs/by-name/op/openpomodoro-cli/package.nix new file mode 100644 index 0000000000000..5e29d1e1c7734 --- /dev/null +++ b/pkgs/by-name/op/openpomodoro-cli/package.nix @@ -0,0 +1,33 @@ +{ lib +, buildGoModule +, fetchFromGitHub +}: + +buildGoModule rec { + pname = "openpomodoro-cli"; + version = "0.3.0"; + + src = fetchFromGitHub { + owner = "open-pomodoro"; + repo = "openpomodoro-cli"; + rev = "refs/tags/v${version}"; + hash = "sha256-h/o4yxrZ8ViHhN2JS0ZJMfvcJBPCsyZ9ZQw9OmKnOfY="; + }; + + vendorHash = "sha256-BR9d/PMQ1ZUYWSDO5ID2bkTN+A+VbaLTlz5t0vbkO60="; + + ldflags = [ + "-w" + "-s" + "-X=main.Version=${version}" + ]; + + meta = with lib; { + description = "A command-line Pomodoro tracker which uses the Open Pomodoro Format"; + homepage = "https://github.com/open-pomodoro/openpomodoro-cli"; + changelog = "https://github.com/open-pomodoro/openpomodoro-cli/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ gdifolco ]; + mainProgram = "openpomodoro-cli"; + }; +} |