Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6d81d8254c56
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4ae70b777197
Choose a head ref
  • 3 commits
  • 3 files changed
  • 2 contributors

Commits on Sep 7, 2018

  1. add stites to maintainers list

    stites committed Sep 7, 2018

    Verified

    This commit was signed with the committer’s verified signature. The key has expired.
    jojosch Johannes Schleifenbaum
    Copy the full SHA
    82f9808 View commit details
  2. noti: init at 3.1.0

    stites committed Sep 7, 2018
    Copy the full SHA
    f1c30cf View commit details
  3. Merge pull request #46111 from stites/noti

    noti: init at 3.1.0
    srhb authored Sep 7, 2018
    Copy the full SHA
    4ae70b7 View commit details
Showing with 45 additions and 0 deletions.
  1. +5 −0 maintainers/maintainer-list.nix
  2. +38 −0 pkgs/tools/misc/noti/default.nix
  3. +2 −0 pkgs/top-level/all-packages.nix
5 changes: 5 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -3893,6 +3893,11 @@
github = "StillerHarpo";
name = "Florian Engel";
};
stites = {
email = "sam@stites.io";
github = "stites";
name = "Sam Stites";
};
stumoss = {
email = "samoss@gmail.com";
github = "stumoss";
38 changes: 38 additions & 0 deletions pkgs/tools/misc/noti/default.nix
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;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
@@ -1462,6 +1462,8 @@ with pkgs;

noteshrink = callPackage ../tools/misc/noteshrink { };

noti = callPackage ../tools/misc/noti { };

nrsc5 = callPackage ../applications/misc/nrsc5 { };

nwipe = callPackage ../tools/security/nwipe { };