Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 35 lines 1.1 kB view raw
1{ lib, stdenv, fetchFromGitHub, autoreconfHook }: 2 3stdenv.mkDerivation rec { 4 pname = "uptimed"; 5 version = "0.4.6"; 6 7 src = fetchFromGitHub { 8 sha256 = "sha256-aYP20O/8QotmnpryiFnFAfrpyk5f+0OkbkGxWf2Ug9w="; 9 rev = "v${version}"; 10 repo = "uptimed"; 11 owner = "rpodgorny"; 12 }; 13 14 nativeBuildInputs = [ autoreconfHook ]; 15 patches = [ ./no-var-spool-install.patch ]; 16 17 postPatch = '' 18 substituteInPlace libuptimed/urec.h \ 19 --replace /var/spool /var/lib 20 ''; 21 22 meta = with lib; { 23 description = "Uptime record daemon"; 24 longDescription = '' 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. 29 ''; 30 homepage = "https://github.com/rpodgorny/uptimed/"; 31 license = with licenses; [ gpl2Only lgpl21Plus ]; 32 maintainers = with maintainers; [ ]; 33 platforms = platforms.linux; 34 }; 35}