nixpkgs/pkgs/applications/misc/batsignal/default.nix

26 lines
699 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, libnotify, pkg-config, glib }:
2020-06-28 01:49:46 +02:00
stdenv.mkDerivation rec {
pname = "batsignal";
2021-12-12 06:22:26 +01:00
version = "1.3.1";
2020-06-28 01:49:46 +02:00
src = fetchFromGitHub {
owner = "electrickite";
repo = "batsignal";
rev = version;
2021-12-12 06:22:26 +01:00
sha256 = "sha256-ClwI3ZbkLul+l0zzzGxNjSOUTuVzIxtwUPNLOeFT2X0=";
2020-06-28 01:49:46 +02:00
};
buildInputs = [ libnotify glib ];
nativeBuildInputs = [ pkg-config ];
installFlags = [ "PREFIX=${placeholder "out"}" ];
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;
};
}