7 stdenv.mkDerivation rec {
11 src = fetchFromGitHub {
15 sha256 = "sha256-MRHM+hyuRevK4L3u6dGw1S3O7w+BJBsprJVcSz6Q9xg=";
18 buildInputs = [ python3 which ];
21 substituteInPlace power-usage-report \
22 --replace "'which'" "'${which}/bin/which'"
25 makeFlags = [ "PREFIX=$(out)" ];
28 description = "Report system-wide file access events";
29 homepage = "https://github.com/martinpitt/fatrace";
30 license = licenses.gpl3Plus;
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.
38 platforms = platforms.linux;