2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libnotify, pkg-config, glib }:
|
2020-06-27 23:49:46 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "batsignal";
|
2022-02-10 16:56:38 +00:00
|
|
|
version = "1.3.4";
|
2020-06-27 23:49:46 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "electrickite";
|
|
|
|
repo = "batsignal";
|
2020-11-01 22:39:49 +00:00
|
|
|
rev = version;
|
2022-02-10 16:56:38 +00:00
|
|
|
sha256 = "sha256-B2HAEJj8TX44YagJ993d7js/wi1D39/Hi85rxJoKa3U=";
|
2020-06-27 23:49:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnotify glib ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-06-27 23:49:46 +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;
|
|
|
|
};
|
|
|
|
}
|