lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 61 lines 1.3 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 makeWrapper, 6 installShellFiles, 7 python3, 8 sqlite, 9 nixosTests, 10}: 11 12stdenv.mkDerivation rec { 13 pname = "tuptime"; 14 version = "5.2.4"; 15 16 src = fetchFromGitHub { 17 owner = "rfmoz"; 18 repo = "tuptime"; 19 rev = version; 20 sha256 = "sha256-pYGtgv9hPBG/URD2nOWg6qJYYLtlqLW+t5mCLpzKlEc="; 21 }; 22 23 nativeBuildInputs = [ 24 makeWrapper 25 installShellFiles 26 ]; 27 28 buildInputs = [ python3 ]; 29 30 outputs = [ 31 "out" 32 "man" 33 ]; 34 35 installPhase = '' 36 mkdir -p $out/bin 37 install -m 755 $src/src/tuptime $out/bin/ 38 39 installManPage $src/src/man/tuptime.1 40 41 install -Dm 0755 $src/misc/scripts/db-tuptime-migrate-4.0-to-5.0.sh \ 42 $out/share/tuptime/db-tuptime-migrate-4.0-to-5.0.sh 43 ''; 44 45 preFixup = '' 46 wrapProgram $out/share/tuptime/db-tuptime-migrate-4.0-to-5.0.sh \ 47 --prefix PATH : "${lib.makeBinPath [ sqlite ]}" 48 ''; 49 50 passthru.tests = nixosTests.tuptime; 51 52 meta = with lib; { 53 description = "Total uptime & downtime statistics utility"; 54 homepage = "https://github.com/rfrail3/tuptime"; 55 changelog = "https://github.com/rfrail3/tuptime/blob/master/CHANGELOG"; 56 license = licenses.gpl2Plus; 57 platforms = platforms.all; 58 maintainers = [ maintainers.evils ]; 59 mainProgram = "tuptime"; 60 }; 61}