summary refs log tree commit diff
path: root/pkgs/development/tools/analysis/rr
diff options
context:
space:
mode:
authorNicolas Pierron <nicolas.b.pierron@gmail.com>2014-05-26 01:25:28 +0200
committerNicolas B. Pierron <nicolas.b.pierron@gmail.com>2014-11-30 17:20:34 +0100
commit1b294105d757810e0c1b2e6dc3313431d70a3f78 (patch)
tree10cd1fd03f14212ceb2aaa3e8a042134766b66b5 /pkgs/development/tools/analysis/rr
parentdf19564f8b5907ea28e7da4ac53437671c805348 (diff)
downloadnixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.tar
nixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.tar.gz
nixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.tar.bz2
nixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.tar.lz
nixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.tar.xz
nixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.tar.zst
nixpkgs-1b294105d757810e0c1b2e6dc3313431d70a3f78.zip
libpfm & rr: Add packages.
Diffstat (limited to 'pkgs/development/tools/analysis/rr')
-rw-r--r--pkgs/development/tools/analysis/rr/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkgs/development/tools/analysis/rr/default.nix b/pkgs/development/tools/analysis/rr/default.nix
new file mode 100644
index 00000000000..797fce755cc
--- /dev/null
+++ b/pkgs/development/tools/analysis/rr/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, fetchurl, unzip, cmake, libpfm }:
+
+stdenv.mkDerivation rec {
+  version = "1.3.0";
+  name = "rr-${version}";
+
+  src = fetchurl {
+    url = "https://github.com/mozilla/rr/archive/${version}.zip";
+    sha256 = "c7b7efac77f00805a26b0530e0bca4076b4b058374e5501328ec17cf0fa27021";
+  };
+
+  buildInputs = [ unzip cmake libpfm ];
+  cmakeFlags = "-DCMAKE_C_FLAGS_RELEASE:STRING= -DCMAKE_CXX_FLAGS_RELEASE:STRING=";
+
+  meta = {
+    homepage = http://rr-project.org/;
+    description = "Records nondeterministic executions and debugs them deterministically";
+    longDescription = ''
+      rr aspires to be your primary debugging tool, replacing -- well,
+      enhancing -- gdb. You record a failure once, then debug the
+      recording, deterministically, as many times as you want. Every
+      time the same execution is replayed.
+    '';
+
+    license = "custom";
+    maintainers = [ stdenv.lib.maintainers.pierron ];
+    platforms = [ "i686-linux" ];
+  };
+}
\ No newline at end of file