summary refs log tree commit diff
path: root/pkgs/os-specific/linux/fatrace
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-01-04 11:16:44 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2021-01-04 11:16:44 +0100
commitba330148c6e27a352b9e80566c534305292023fa (patch)
tree0cda3b1dd69dee55b507181185f5ed9518879ba1 /pkgs/os-specific/linux/fatrace
parent9c9c6461ba79a6c233741760045f3b44be5924dd (diff)
downloadnixpkgs-ba330148c6e27a352b9e80566c534305292023fa.tar
nixpkgs-ba330148c6e27a352b9e80566c534305292023fa.tar.gz
nixpkgs-ba330148c6e27a352b9e80566c534305292023fa.tar.bz2
nixpkgs-ba330148c6e27a352b9e80566c534305292023fa.tar.lz
nixpkgs-ba330148c6e27a352b9e80566c534305292023fa.tar.xz
nixpkgs-ba330148c6e27a352b9e80566c534305292023fa.tar.zst
nixpkgs-ba330148c6e27a352b9e80566c534305292023fa.zip
fatrace: 0.13 -> 0.16.1
Diffstat (limited to 'pkgs/os-specific/linux/fatrace')
-rw-r--r--pkgs/os-specific/linux/fatrace/default.nix21
1 files changed, 12 insertions, 9 deletions
diff --git a/pkgs/os-specific/linux/fatrace/default.nix b/pkgs/os-specific/linux/fatrace/default.nix
index 69d1afad8a6..62767f68278 100644
--- a/pkgs/os-specific/linux/fatrace/default.nix
+++ b/pkgs/os-specific/linux/fatrace/default.nix
@@ -1,12 +1,18 @@
-{ 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 ];
@@ -14,16 +20,13 @@ stdenv.mkDerivation rec {
   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.