2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "uptimed";
|
2021-12-06 16:07:01 +00:00
|
|
|
version = "0.4.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
sha256 = "sha256-jvdodclZhN7WF7bsR3DHaLb8fAEABap8OAfmTZF1804=";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
repo = "uptimed";
|
|
|
|
owner = "rpodgorny";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
patches = [ ./no-var-spool-install.patch ];
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace libuptimed/urec.h \
|
|
|
|
--replace /var/spool /var/lib
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Uptime record daemon";
|
|
|
|
longDescription = ''
|
|
|
|
An uptime record daemon keeping track of the highest uptimes a computer
|
|
|
|
system ever had. It uses the system boot time to keep sessions apart from
|
|
|
|
each other. Uptimed comes with a console front-end to parse the records,
|
|
|
|
which can also easily be used to show your records on a web page.
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/rpodgorny/uptimed/";
|
2021-03-12 07:09:13 +00:00
|
|
|
license = with licenses; [ gpl2Only lgpl21Plus ];
|
|
|
|
maintainers = with maintainers; [ ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|