Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
systemd,
|
|
libnotify,
|
|
pkg-config,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "psi-notify";
|
|
version = "1.3.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "cdown";
|
|
repo = "psi-notify";
|
|
rev = version;
|
|
sha256 = "sha256-GhGiSI5r0Ki6+MYNa5jCDyYZEW5R9LDNZ/S8K+6L0jo=";
|
|
};
|
|
|
|
buildInputs = [
|
|
systemd
|
|
libnotify
|
|
];
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -D psi-notify $out/bin/psi-notify
|
|
substituteInPlace psi-notify.service --replace psi-notify $out/bin/psi-notify
|
|
install -D psi-notify.service $out/lib/systemd/user/psi-notify.service
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Alert on system resource saturation";
|
|
longDescription = ''
|
|
psi-notify can alert you when resources on your machine are becoming
|
|
oversaturated, and allow you to take action before your system slows to a
|
|
crawl.
|
|
'';
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/cdown/psi-notify";
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ eduarrrd ];
|
|
mainProgram = "psi-notify";
|
|
};
|
|
}
|