Merge pull request #108383 from fabaff/bump-fatrace

fatrace: 0.13 -> 0.16.1
This commit is contained in:
Sandro 2021-01-04 16:38:02 +01:00 committed by GitHub
commit a61f47d445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,12 +1,18 @@
{ stdenv, fetchurl, python3, which }: { stdenv
, fetchFromGitHub
, python3
, which
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "fatrace"; pname = "fatrace";
version = "0.13"; version = "0.16.1";
src = fetchurl { src = fetchFromGitHub {
url = "https://launchpad.net/fatrace/trunk/${version}/+download/${pname}-${version}.tar.bz2"; owner = "martinpitt";
sha256 = "0hrh45bpzncw0jkxw3x2smh748r65k2yxvfai466043bi5q0d2vx"; repo = pname;
rev = version;
sha256 = "0lxfqin2bw9235yah8ylb4p8lc3755050sjg30z3gy7bab0lfyg9";
}; };
buildInputs = [ python3 which ]; buildInputs = [ python3 which ];
@ -14,16 +20,13 @@ stdenv.mkDerivation rec {
postPatch = '' postPatch = ''
substituteInPlace power-usage-report \ substituteInPlace power-usage-report \
--replace "'which'" "'${which}/bin/which'" --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)" ]; makeFlags = [ "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Report system-wide file access events"; description = "Report system-wide file access events";
homepage = "https://launchpad.net/fatrace/"; homepage = "https://github.com/martinpitt/fatrace";
license = licenses.gpl3Plus; license = licenses.gpl3Plus;
longDescription = '' longDescription = ''
fatrace reports file access events from all running processes. fatrace reports file access events from all running processes.