{ pkgs ? import {} }: pkgs.stdenv.mkDerivation rec { pname = "lowbat"; version = "1.2.1"; src = pkgs.fetchzip { url = "https://git.tjkeller.xyz/${pname}/snapshot/${pname}-${version}.tar.xz"; sha256 = "sha256-xsUHdmicHX/fQQgojVjWfzI82e4NezkmlACOpdPxLE0="; }; nativeBuildInputs = [ pkgs.pkg-config ]; buildInputs = [ pkgs.libnotify pkgs.glib ]; buildPhase = '' make ''; installPhase = '' mkdir -p $out/bin $out/share/man/man1 cp lowbat $out/bin/ cp lowbat.1 $out/share/man/man1/ ''; meta = with pkgs.lib; { description = "A minimal battery level monitor daemon, written in C"; license = licenses.mit; maintainers = [ maintainers.tjkeller ]; }; }