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

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

53 lines
1.1 KiB
Nix
Raw Normal View History

2022-07-19 15:55:06 +00:00
{ stdenv
, lib
, buildGoModule
, fetchFromGitHub
, Cocoa
, installShellFiles
}:
buildGoModule rec {
2019-08-15 09:44:19 +00:00
pname = "noti";
version = "3.7.0";
2018-09-07 14:27:27 +00:00
src = fetchFromGitHub {
owner = "variadico";
repo = "noti";
2019-08-15 09:44:19 +00:00
rev = version;
hash = "sha256-8CHSbKOiWNYqKBU1kqQm5t02DJq0JfoIaPsU6Ylc46E=";
2018-09-07 14:27:27 +00:00
};
vendorHash = null;
2022-07-19 15:55:06 +00:00
nativeBuildInputs = [ installShellFiles ];
buildInputs = lib.optional stdenv.isDarwin Cocoa;
2018-09-07 14:27:27 +00:00
2021-08-21 08:23:50 +00:00
ldflags = [
2022-07-19 15:55:06 +00:00
"-s"
"-w"
"-X github.com/variadico/noti/internal/command.Version=${version}"
2021-08-21 08:23:50 +00:00
];
2018-09-07 14:27:27 +00:00
preCheck = ''
export PATH=$out/bin:$PATH
'';
2018-09-07 14:27:27 +00:00
postInstall = ''
installManPage docs/man/dist/*
2018-09-07 14:27:27 +00:00
'';
2019-08-15 09:44:19 +00:00
meta = with lib; {
description = "Monitor a process and trigger a notification";
2018-09-07 14:27:27 +00:00
longDescription = ''
Monitor a process and trigger a notification.
Never sit and wait for some long-running process to finish. Noti can alert
you when it's done. You can receive messages on your computer or phone.
2018-09-07 14:27:27 +00:00
'';
homepage = "https://github.com/variadico/noti";
2018-09-07 14:27:27 +00:00
license = licenses.mit;
2019-10-03 00:01:00 +00:00
maintainers = with maintainers; [ stites marsam ];
2018-09-07 14:27:27 +00:00
};
}