2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub, libnotify, pkg-config, glib }:
|
2020-06-28 01:49:46 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "batsignal";
|
2022-03-05 11:31:22 +01:00
|
|
|
version = "1.3.5";
|
2020-06-28 01:49:46 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "electrickite";
|
|
|
|
repo = "batsignal";
|
2020-11-01 23:39:49 +01:00
|
|
|
rev = version;
|
2022-03-05 11:31:22 +01:00
|
|
|
sha256 = "sha256-bBa3eKBT43G/Q8gYluW2gH5qcmp/SsrF06onyGlg+UI=";
|
2020-06-28 01:49:46 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ libnotify glib ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
installFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-06-28 01:49:46 +02:00
|
|
|
homepage = "https://github.com/electrickite/batsignal";
|
|
|
|
description = "Lightweight battery daemon written in C";
|
|
|
|
license = licenses.isc;
|
|
|
|
maintainers = with maintainers; [ SlothOfAnarchy ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|