2020-06-28 00:49:46 +01:00
|
|
|
{ stdenv, fetchFromGitHub, libnotify, pkg-config, glib }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "batsignal";
|
2020-10-29 17:54:46 +00:00
|
|
|
version = "1.1.3";
|
2020-06-28 00:49:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "electrickite";
|
|
|
|
repo = "batsignal";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2020-10-29 17:54:46 +00:00
|
|
|
sha256 = "12hj0j18db34x0xzgj6xmhvxm966d05z0rl3d9rlrcd2q96lilwf";
|
2020-06-28 00:49:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnotify glib ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/electrickite/batsignal";
|
|
|
|
description = "Lightweight battery daemon written in C";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ SlothOfAnarchy ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|