1 { lib, stdenv, fetchFromGitHub, systemd, libnotify, pkg-config }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-GhGiSI5r0Ki6+MYNa5jCDyYZEW5R9LDNZ/S8K+6L0jo=";
14 buildInputs = [ systemd libnotify ];
15 nativeBuildInputs = [ pkg-config ];
20 install -D psi-notify $out/bin/psi-notify
21 substituteInPlace psi-notify.service --replace psi-notify $out/bin/psi-notify
22 install -D psi-notify.service $out/lib/systemd/user/psi-notify.service
28 description = "Alert on system resource saturation";
30 psi-notify can alert you when resources on your machine are becoming
31 oversaturated, and allow you to take action before your system slows to a
34 license = licenses.mit;
35 homepage = "https://github.com/cdown/psi-notify";
36 platforms = platforms.linux;
37 maintainers = with maintainers; [ eduarrrd ];