summary refs log tree commit diff
path: root/pkgs/os-specific/linux/fatrace
diff options
context:
space:
mode:
authorTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-04-25 13:26:16 +0200
committerTobias Geerinckx-Rice <tobias.geerinckx.rice@gmail.com>2016-04-25 13:31:48 +0200
commit364181b3173c7a8616efc86f374c91cd778b372a (patch)
treed7b8248c20071d1054aa4d4630e0e670a155811c /pkgs/os-specific/linux/fatrace
parentddc401ed0a8c768ee784aff3d50dc97f8ba8e279 (diff)
downloadnixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.tar
nixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.tar.gz
nixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.tar.bz2
nixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.tar.lz
nixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.tar.xz
nixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.tar.zst
nixpkgs-364181b3173c7a8616efc86f374c91cd778b372a.zip
fatrace: add patch to fix crash
Will be included in next release.
Diffstat (limited to 'pkgs/os-specific/linux/fatrace')
-rw-r--r--pkgs/os-specific/linux/fatrace/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/fatrace/default.nix b/pkgs/os-specific/linux/fatrace/default.nix
index ca864091d4b..5a34eee85e4 100644
--- a/pkgs/os-specific/linux/fatrace/default.nix
+++ b/pkgs/os-specific/linux/fatrace/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, python3, which }:
+{ stdenv, fetchurl, fetchpatch, python3, which }:
 
 stdenv.mkDerivation rec {
   name = "fatrace-${version}";
@@ -9,6 +9,15 @@ stdenv.mkDerivation rec {
     sha256 = "1f77v222nlfbf8fv7d28cnpm7x8xz0mhxavgz19c2jc51pjlv84s";
   };
 
+  patchFlags = "-p0";
+  patches = [
+    (fetchpatch {
+      sha256 = "0gym1zg42vb4czpbkz4shnc7z3lskn1ny6dpx10ykwf145xyf9m2";
+      name = "fatrace-fix-crash-when-using-p-option.patch";
+      url = "http://bazaar.launchpad.net/~pitti/fatrace/trunk/diff/67?context=3";
+    })
+  ];
+
   buildInputs = [ python3 which ];
 
   postPatch = ''