nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 autoreconfHook,
6}:
7
8stdenv.mkDerivation (finalAttrs: {
9 pname = "uptimed";
10 version = "0.4.7";
11
12 src = fetchFromGitHub {
13 sha256 = "sha256-gP6Syzu54/co4L+UCPikUhXDpxpfAB4jO/5ZF/9RdN0=";
14 rev = "v${finalAttrs.version}";
15 repo = "uptimed";
16 owner = "rpodgorny";
17 };
18
19 nativeBuildInputs = [ autoreconfHook ];
20 patches = [ ./no-var-spool-install.patch ];
21
22 postPatch = ''
23 substituteInPlace libuptimed/urec.h \
24 --replace /var/spool /var/lib
25 '';
26
27 meta = {
28 description = "Uptime record daemon";
29 longDescription = ''
30 An uptime record daemon keeping track of the highest uptimes a computer
31 system ever had. It uses the system boot time to keep sessions apart from
32 each other. Uptimed comes with a console front-end to parse the records,
33 which can also easily be used to show your records on a web page.
34 '';
35 homepage = "https://github.com/rpodgorny/uptimed/";
36 license = with lib.licenses; [
37 gpl2Only
38 lgpl21Plus
39 ];
40 maintainers = [ ];
41 platforms = lib.platforms.linux;
42 };
43})