Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: d92659f1e974
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a61f47d445b6
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 4, 2021

  1. fatrace: 0.13 -> 0.16.1

    fabaff committed Jan 4, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    ba33014 View commit details
  2. Merge pull request #108383 from fabaff/bump-fatrace

    fatrace: 0.13 -> 0.16.1
    SuperSandro2000 authored Jan 4, 2021
    Copy the full SHA
    a61f47d View commit details
Showing with 12 additions and 9 deletions.
  1. +12 −9 pkgs/os-specific/linux/fatrace/default.nix
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.