Skip to content

Commit

Permalink
fatrace: 0.13 -> 0.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Jan 4, 2021
1 parent 9c9c646 commit ba33014
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions pkgs/os-specific/linux/fatrace/default.nix
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
{ stdenv, fetchurl, python3, which }:
{ stdenv
, fetchFromGitHub
, python3
, which
}:

stdenv.mkDerivation rec {
pname = "fatrace";
version = "0.13";
version = "0.16.1";

src = fetchurl {
url = "https://launchpad.net/fatrace/trunk/${version}/+download/${pname}-${version}.tar.bz2";
sha256 = "0hrh45bpzncw0jkxw3x2smh748r65k2yxvfai466043bi5q0d2vx";
src = fetchFromGitHub {
owner = "martinpitt";
repo = pname;
rev = version;
sha256 = "0lxfqin2bw9235yah8ylb4p8lc3755050sjg30z3gy7bab0lfyg9";
};

buildInputs = [ python3 which ];

postPatch = ''
substituteInPlace power-usage-report \
--replace "'which'" "'${which}/bin/which'"
# Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror.
sed 1i'#include <sys/sysmacros.h>' -i fatrace.c
'';

makeFlags = [ "PREFIX=$(out)" ];

meta = with stdenv.lib; {
description = "Report system-wide file access events";
homepage = "https://launchpad.net/fatrace/";
homepage = "https://github.com/martinpitt/fatrace";
license = licenses.gpl3Plus;
longDescription = ''
fatrace reports file access events from all running processes.
Expand Down

0 comments on commit ba33014

Please sign in to comment.