mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-24 01:21:11 +00:00
pomo: init at 1.2.1
pomo: init at 1.2.1 apply suggestion Update pkgs/by-name/po/pomo/package.nix Co-authored-by: Arne Keller <arne.keller@posteo.de> fmt fmt
This commit is contained in:
committed by
Mugahed Izzeldin
parent
1234cd4ca4
commit
62993a3a8f
39
pkgs/by-name/po/pomo/package.nix
Normal file
39
pkgs/by-name/po/pomo/package.nix
Normal file
@@ -0,0 +1,39 @@
|
||||
{
|
||||
lib,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
iana-etc,
|
||||
libredirect,
|
||||
stdenvNoCC,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "pomo";
|
||||
version = "1.2.1";
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Bahaaio";
|
||||
repo = "pomo";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-gQ7bHQGaQPujpOwVdcwKgiYQjUECi/Pjt5LKwa1v1J8=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-kbTYq4Xc86bcmNMhInq1rwYTbGRmu2TEXT2e7bqT5YY=";
|
||||
|
||||
nativeCheckInputs = lib.optionals stdenvNoCC.hostPlatform.isDarwin [ libredirect.hook ];
|
||||
|
||||
preCheck = lib.optionalString stdenvNoCC.hostPlatform.isDarwin ''
|
||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/services=${iana-etc}/etc/services
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Customizable TUI Pomodoro timer with ASCII art, progress bar, notifications, and stats";
|
||||
homepage = "https://github.com/Bahaaio/pomo";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [
|
||||
mugaizzo
|
||||
];
|
||||
mainProgram = "pomo";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user