2017-10-11 00:01:42 +01:00
|
|
|
{ stdenv
|
2017-12-31 14:52:50 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, itstool
|
|
|
|
, libxml2
|
|
|
|
, meson, ninja
|
|
|
|
, pango
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, shared-mime-info
|
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome3
|
2017-10-11 00:01:42 +01:00
|
|
|
}:
|
2017-12-31 14:52:50 +00:00
|
|
|
let
|
2018-09-06 11:18:31 +01:00
|
|
|
version = "3.30.0";
|
2017-12-31 14:52:50 +00:00
|
|
|
pname = "sysprof";
|
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
2008-06-07 15:02:17 +01:00
|
|
|
|
2017-12-31 14:52:50 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
2008-06-07 15:02:17 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-12-31 14:52:50 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-09-06 11:18:31 +01:00
|
|
|
sha256 = "0qrzcs60m44mmj7ln9815kfgvi2pjlhmk0p4vjc0dw3pw95jrk99";
|
2008-06-07 15:02:17 +01:00
|
|
|
};
|
|
|
|
|
2017-12-31 14:52:50 +00:00
|
|
|
nativeBuildInputs = [ desktop-file-utils gettext itstool libxml2 meson ninja pkgconfig shared-mime-info wrapGAppsHook ];
|
|
|
|
buildInputs = [ glib gtk3 pango polkit systemd.dev systemd.lib ];
|
2008-06-07 15:02:17 +01:00
|
|
|
|
2017-12-31 14:52:50 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemdunitdir=lib/systemd/system"
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
rm $out/share/applications/mimeinfo.cache
|
|
|
|
'';
|
2008-06-07 15:02:17 +01:00
|
|
|
|
2017-12-31 14:52:50 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "System-wide profiler for Linux";
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Sysprof;
|
2008-06-07 15:02:17 +01:00
|
|
|
longDescription = ''
|
2012-12-27 00:44:31 +00:00
|
|
|
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
|
2008-06-07 15:02:17 +01:00
|
|
|
application. Sysprof handles shared libraries and applications
|
|
|
|
do not need to be recompiled. In fact they don't even have to
|
|
|
|
be restarted.
|
|
|
|
'';
|
2017-12-31 14:52:50 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2008-06-07 15:02:17 +01:00
|
|
|
};
|
2010-05-27 20:34:08 +01:00
|
|
|
}
|