about summary refs log tree commit diff
path: root/third_party/rr/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rr/default.nix')
-rw-r--r--third_party/rr/default.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/third_party/rr/default.nix b/third_party/rr/default.nix
index 9c164a36fdde..8f2cf85cc5da 100644
--- a/third_party/rr/default.nix
+++ b/third_party/rr/default.nix
@@ -1,7 +1,16 @@
 { pkgs, ... }:
 
 pkgs.originals.rr.overrideAttrs(_: {
-  patches = [
-    ./0001-PerfCounters-don-t-exit-on-AMD-ThreadRipper-3960X.patch
-  ];
+  src = pkgs.fetchFromGitHub {
+    owner = "mozilla";
+    repo = "rr";
+    rev = "8fc7d2a09a739fee1883d262501e88613165c1dd";
+    sha256 = "0avq5lv082z2sasggfn2awnfrh08cr8f0i9iw1dnrcxa6pc3bi9k";
+    fetchSubmodules = false;
+  };
+
+  # Workaround as documented on https://github.com/mozilla/rr/wiki/Zen
+  postInstall = ''
+    cp $src/scripts/zen_workaround.py $out/bin/rr_zen_workaround
+  '';
 })