summary refs log tree commit diff
path: root/pkgs/development/tools/profiling/sysprof/default.nix
diff options
context:
space:
mode:
authorArseniy Alekseyev <rotsor@gmail.com>2012-12-27 00:44:31 +0000
committerArseniy Alekseyev <rotsor@gmail.com>2012-12-27 01:02:06 +0000
commitd1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f (patch)
tree76d1d1117d538b301f6607fd56afdcf6840bc15b /pkgs/development/tools/profiling/sysprof/default.nix
parentb21cee6f63cbbf26adb3677071d8cda597f38afa (diff)
downloadnixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.tar
nixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.tar.gz
nixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.tar.bz2
nixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.tar.lz
nixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.tar.xz
nixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.tar.zst
nixpkgs-d1e70f9b848bdd04e8e0bd9e1a1626eefdc5125f.zip
Updated sysprof from 1.0.12 to 1.2.0.
Updated the sysprof package. I've removed 1.0.12 because itwas failing to build.
It also allowed to simplify the expression because 1.2.0 no longer
includes a kernel module.
Diffstat (limited to 'pkgs/development/tools/profiling/sysprof/default.nix')
-rw-r--r--pkgs/development/tools/profiling/sysprof/default.nix34
1 files changed, 7 insertions, 27 deletions
diff --git a/pkgs/development/tools/profiling/sysprof/default.nix b/pkgs/development/tools/profiling/sysprof/default.nix
index 154561e27e1..b6750f88937 100644
--- a/pkgs/development/tools/profiling/sysprof/default.nix
+++ b/pkgs/development/tools/profiling/sysprof/default.nix
@@ -1,44 +1,24 @@
-{ fetchurl, stdenv, kernel, binutils
+{ fetchurl, stdenv, binutils
 , pkgconfig, gtk, glib, pango, libglade }:
 
 stdenv.mkDerivation rec {
-  name = "sysprof-1.0.12-${kernel.version}";
+  name = "sysprof-1.2.0";
 
   src = fetchurl {
-    url = "http://www.daimi.au.dk/~sandmann/sysprof/sysprof-1.0.12.tar.gz";
-    sha256 = "0f0z1dh97swlrkw3cbv5k2jhy5rk7wxv55hp7yhysw3idgp8wbmz";
+    url = "http://www.sysprof.com/sysprof-1.2.0.tar.gz";
+    sha256 = "1wb4d844rsy8qjg3z5m6rnfm72da4xwzrrkkb1q5r10sq1pkrw5s";
   };
 
   buildInputs = [ binutils pkgconfig gtk glib pango libglade ];
 
-  patches = [ ./configure.patch ];
-
-  preConfigure = ''
-    kernelVersion=$(cd "${kernel}/lib/modules" && echo *)
-    echo "assuming Linux kernel version \`$kernelVersion'"
-
-    sed -i "module/Makefile" \
-        -e"s|^[[:blank:]]*KDIR[[:blank:]]*:=.*$|KDIR := ${kernel}/lib/modules/$kernelVersion/build|g ;
-	   s|\$(KMAKE) modules_install|install sysprof-module.ko $out/share/sysprof/module|g ;
-	   s|\\[ -e /sbin/depmod.*$|true|g"
-
-    # XXX: We won't run `depmod' after installing the module.
-  '';
-
-  configureFlags = "--enable-kernel-module";
-
-  preInstall = ''
-    mkdir -p "$out/share/sysprof/module"
-  '';
-
   meta = {
-    homepage = http://www.daimi.au.dk/~sandmann/sysprof/;
+    homepage = http://sysprof.com/;
     description = "Sysprof, a system-wide profiler for Linux";
     license = "GPLv2+";
 
     longDescription = ''
-      Sysprof is a sampling CPU profiler for Linux that uses a kernel
-      module to profile the entire system, not just a single
+      Sysprof is a sampling CPU profiler for Linux that uses the perf_event_open
+      system call to profile the entire system, not just a single
       application.  Sysprof handles shared libraries and applications
       do not need to be recompiled.  In fact they don't even have to
       be restarted.