-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
stites
committed
Sep 7, 2018
1 parent
82f9808
commit f1c30cf
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ stdenv, buildGoPackage, fetchFromGitHub }: | ||
|
||
buildGoPackage rec { | ||
name = "noti-${version}"; | ||
version = "3.1.0"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "variadico"; | ||
repo = "noti"; | ||
rev = "${version}"; | ||
sha256 = "1chsqfqk0pnhx5k2nr4c16cpb8m6zv69l1jvv4v4903zgfzcm823"; | ||
}; | ||
|
||
goPackagePath = "github.com/variadico/noti"; | ||
|
||
preBuild = '' | ||
buildFlagsArray+=("-ldflags" "-X ${goPackagePath}/internal/command.Version=${version}") | ||
''; | ||
|
||
postInstall = '' | ||
mkdir -p $out/share/man/man{1,5}/ | ||
cp $src/docs/man/noti.1 $out/share/man/man1/ | ||
cp $src/docs/man/noti.yaml.5 $out/share/man/man5/ | ||
''; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Monitor a process and trigger a notification."; | ||
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. | ||
''; | ||
homepage = https://github.com/variadico/noti; | ||
license = licenses.mit; | ||
maintainers = [ maintainers.stites ]; | ||
platforms = platforms.all; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters