summaryrefslogtreecommitdiff
path: root/derivations/lowbat/default.nix
blob: 64ec20552cfd05800c25c7665aad12948afff152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib
, fetchzip
, glib
, libnotify
, pkg-config
, stdenv
}:

stdenv.mkDerivation rec {
  pname = "lowbat";
  version = "1.2.2";

  src = fetchzip {
    url = "https://git.tjkeller.xyz/${pname}/snapshot/${pname}-${version}.tar.xz";
    sha256 = "sha256-utdcY9qoDcrBWnGC8m/LUsnoxQ0ilssPDF44A6D/C+8=";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [ libnotify glib ];

  installFlags = [ "PREFIX=$(out)" ];

  meta = with lib; {
    description = "A minimal battery level monitor daemon, written in C";
    license = licenses.mit;
    maintainers = [ maintainers.tjkeller ];
  };
}