lol
fork

Configure Feed

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

at 24.05-pre 40 lines 1.1 kB view raw
1{ lib, stdenv 2, fetchFromGitHub 3, python3 4, which 5}: 6 7stdenv.mkDerivation rec { 8 pname = "fatrace"; 9 version = "0.17.0"; 10 11 src = fetchFromGitHub { 12 owner = "martinpitt"; 13 repo = pname; 14 rev = version; 15 sha256 = "sha256-MRHM+hyuRevK4L3u6dGw1S3O7w+BJBsprJVcSz6Q9xg="; 16 }; 17 18 buildInputs = [ python3 which ]; 19 20 postPatch = '' 21 substituteInPlace power-usage-report \ 22 --replace "'which'" "'${which}/bin/which'" 23 ''; 24 25 makeFlags = [ "PREFIX=$(out)" ]; 26 27 meta = with lib; { 28 description = "Report system-wide file access events"; 29 homepage = "https://github.com/martinpitt/fatrace"; 30 license = licenses.gpl3Plus; 31 longDescription = '' 32 fatrace reports file access events from all running processes. 33 Its main purpose is to find processes which keep waking up the disk 34 unnecessarily and thus prevent some power saving. 35 Requires a Linux kernel with the FANOTIFY configuration option enabled. 36 Enabling X86_MSR is also recommended for power-usage-report on x86. 37 ''; 38 platforms = platforms.linux; 39 }; 40}