sysprof: 1.2.0 -> 3.28.1
This commit is contained in:
parent
b04e939a13
commit
8a93595550
|
@ -383,6 +383,7 @@
|
||||||
./services/misc/sundtek.nix
|
./services/misc/sundtek.nix
|
||||||
./services/misc/svnserve.nix
|
./services/misc/svnserve.nix
|
||||||
./services/misc/synergy.nix
|
./services/misc/synergy.nix
|
||||||
|
./services/misc/sysprof.nix
|
||||||
./services/misc/taskserver
|
./services/misc/taskserver
|
||||||
./services/misc/tzupdate.nix
|
./services/misc/tzupdate.nix
|
||||||
./services/misc/uhub.nix
|
./services/misc/uhub.nix
|
||||||
|
|
19
nixos/modules/services/misc/sysprof.nix
Normal file
19
nixos/modules/services/misc/sysprof.nix
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
{ config, lib, pkgs, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
options = {
|
||||||
|
services.sysprof = {
|
||||||
|
enable = lib.mkEnableOption "sysprof profiling daemon";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.services.sysprof.enable {
|
||||||
|
environment.systemPackages = [ pkgs.sysprof ];
|
||||||
|
|
||||||
|
services.dbus.packages = [ pkgs.sysprof ];
|
||||||
|
|
||||||
|
systemd.packages = [ pkgs.sysprof ];
|
||||||
|
};
|
||||||
|
|
||||||
|
meta.maintainers = pkgs.sysprof.meta.maintainers;
|
||||||
|
}
|
|
@ -1,17 +0,0 @@
|
||||||
--- sysprof-1.0.10/configure 2008-04-28 01:41:25.000000000 +0200
|
|
||||||
+++ sysprof-1.0.10/configure 2008-06-07 15:40:07.000000000 +0200
|
|
||||||
@@ -3342,14 +3342,6 @@ if test $kernel_module = "yes"; then
|
|
||||||
echo \*
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
-
|
|
||||||
- if ! test -f /lib/modules/`uname -r`/build/Makefile ; then
|
|
||||||
- echo \*
|
|
||||||
- echo \* Sysprof requires the kernel source code to be installed.
|
|
||||||
- echo \* On a Fedora Core system the relevant package is kernel-devel
|
|
||||||
- echo \*
|
|
||||||
- exit 1
|
|
||||||
- fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Pkgconfig dependencies
|
|
|
@ -1,24 +1,53 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, fetchurl, pkgconfig
|
, desktop-file-utils
|
||||||
, gtk2, glib, pango, libglade
|
, fetchurl
|
||||||
|
, gettext
|
||||||
|
, glib
|
||||||
|
, gtk3
|
||||||
|
, itstool
|
||||||
|
, libxml2
|
||||||
|
, meson, ninja
|
||||||
|
, pango
|
||||||
|
, pkgconfig
|
||||||
|
, polkit
|
||||||
|
, shared-mime-info
|
||||||
|
, systemd
|
||||||
|
, wrapGAppsHook
|
||||||
|
, gnome3
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
version = "3.28.1";
|
||||||
|
pname = "sysprof";
|
||||||
|
in stdenv.mkDerivation rec {
|
||||||
|
name = "${pname}-${version}";
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
outputs = [ "out" "lib" "dev" ];
|
||||||
name = "sysprof-1.2.0";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://www.sysprof.com/sysprof-1.2.0.tar.gz";
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
||||||
sha256 = "1wb4d844rsy8qjg3z5m6rnfm72da4xwzrrkkb1q5r10sq1pkrw5s";
|
sha256 = "05534dvwrzrmryb4y2m1sb2q0r8i6nr88pzjg7xs5nr9zq8a87p3";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig ];
|
nativeBuildInputs = [ desktop-file-utils gettext itstool libxml2 meson ninja pkgconfig shared-mime-info wrapGAppsHook ];
|
||||||
buildInputs = [ gtk2 glib pango libglade ];
|
buildInputs = [ glib gtk3 pango polkit systemd.dev systemd.lib ];
|
||||||
|
|
||||||
meta = {
|
mesonFlags = [
|
||||||
homepage = http://sysprof.com/;
|
"-Dsystemdunitdir=lib/systemd/system"
|
||||||
|
];
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
rm $out/share/applications/mimeinfo.cache
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
updateScript = gnome3.updateScript {
|
||||||
|
packageName = pname;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "System-wide profiler for Linux";
|
description = "System-wide profiler for Linux";
|
||||||
license = stdenv.lib.licenses.gpl2Plus;
|
homepage = https://wiki.gnome.org/Apps/Sysprof;
|
||||||
|
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Sysprof is a sampling CPU profiler for Linux that uses the perf_event_open
|
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
|
system call to profile the entire system, not just a single
|
||||||
|
@ -26,6 +55,8 @@ stdenv.mkDerivation rec {
|
||||||
do not need to be recompiled. In fact they don't even have to
|
do not need to be recompiled. In fact they don't even have to
|
||||||
be restarted.
|
be restarted.
|
||||||
'';
|
'';
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
platforms = stdenv.lib.platforms.linux;
|
platforms = stdenv.lib.platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -14084,9 +14084,7 @@ with pkgs;
|
||||||
|
|
||||||
sysfsutils = callPackage ../os-specific/linux/sysfsutils { };
|
sysfsutils = callPackage ../os-specific/linux/sysfsutils { };
|
||||||
|
|
||||||
sysprof = callPackage ../development/tools/profiling/sysprof {
|
sysprof = callPackage ../development/tools/profiling/sysprof { };
|
||||||
inherit (gnome2) libglade;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Provided with sysfsutils.
|
# Provided with sysfsutils.
|
||||||
libsysfs = sysfsutils;
|
libsysfs = sysfsutils;
|
||||||
|
|
Loading…
Reference in a new issue