2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libnotify, pkg-config, glib }:
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "batsignal";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.6.4";
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "electrickite";
|
|
|
|
repo = "batsignal";
|
2020-11-03 02:18:15 +00:00
|
|
|
rev = version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-Z5j5tSIF3AZiZjkFFtyyi3hMqWMXtf6ont2CQ/FSEjk=";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnotify glib ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-07-18 16:06:22 +00:00
|
|
|
homepage = "https://github.com/electrickite/batsignal";
|
|
|
|
description = "Lightweight battery daemon written in C";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ SlothOfAnarchy ];
|
|
|
|
platforms = platforms.linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "batsignal";
|
2020-07-18 16:06:22 +00:00
|
|
|
};
|
|
|
|
}
|