1 { lib, stdenv, fetchFromGitHub, autoreconfHook }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 sha256 = "sha256-aYP20O/8QotmnpryiFnFAfrpyk5f+0OkbkGxWf2Ug9w=";
14 nativeBuildInputs = [ autoreconfHook ];
15 patches = [ ./no-var-spool-install.patch ];
18 substituteInPlace libuptimed/urec.h \
19 --replace /var/spool /var/lib
23 description = "Uptime record daemon";
25 An uptime record daemon keeping track of the highest uptimes a computer
26 system ever had. It uses the system boot time to keep sessions apart from
27 each other. Uptimed comes with a console front-end to parse the records,
28 which can also easily be used to show your records on a web page.
30 homepage = "https://github.com/rpodgorny/uptimed/";
31 license = with licenses; [ gpl2Only lgpl21Plus ];
33 platforms = platforms.linux;