2017-10-10 23:01:42 +00:00
|
|
|
{ stdenv
|
2020-08-12 18:17:51 +00:00
|
|
|
, lib
|
2017-12-31 14:52:50 +00:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchurl
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk3
|
2021-03-21 01:29:06 +00:00
|
|
|
, json-glib
|
2017-12-31 14:52:50 +00:00
|
|
|
, itstool
|
2019-09-09 19:48:51 +00:00
|
|
|
, libdazzle
|
2017-12-31 14:52:50 +00:00
|
|
|
, libxml2
|
|
|
|
, meson, ninja
|
|
|
|
, pango
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2017-12-31 14:52:50 +00:00
|
|
|
, polkit
|
|
|
|
, shared-mime-info
|
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
2021-05-07 21:18:14 +00:00
|
|
|
, gnome
|
2017-10-10 23:01:42 +00:00
|
|
|
}:
|
2019-02-17 04:26:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-31 14:52:50 +00:00
|
|
|
pname = "sysprof";
|
2021-03-21 01:29:06 +00:00
|
|
|
version = "3.40.1";
|
2008-06-07 14:02:17 +00:00
|
|
|
|
2017-12-31 14:52:50 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
2008-06-07 14:02:17 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-23 12:26:19 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-21 01:29:06 +00:00
|
|
|
sha256 = "0dvlzjwi3a4g37cpyhqpf41f5hypf0gim1jw9wqlv30flbb00l62";
|
2008-06-07 14:02:17 +00:00
|
|
|
};
|
|
|
|
|
2018-12-14 10:58:32 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2018-12-14 10:58:32 +00:00
|
|
|
shared-mime-info
|
|
|
|
wrapGAppsHook
|
2021-05-07 21:18:14 +00:00
|
|
|
gnome.adwaita-icon-theme
|
2018-12-14 10:58:32 +00:00
|
|
|
];
|
2021-03-21 01:29:06 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
pango
|
|
|
|
polkit
|
|
|
|
systemd
|
|
|
|
libdazzle
|
|
|
|
];
|
2008-06-07 14:02:17 +00:00
|
|
|
|
2017-12-31 14:52:50 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemdunitdir=lib/systemd/system"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 21:18:14 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2017-12-31 14:52:50 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2017-12-31 14:52:50 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-12-31 14:52:50 +00:00
|
|
|
description = "System-wide profiler for Linux";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Sysprof";
|
2008-06-07 14:02:17 +00: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 14:02:17 +00: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;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2021-03-21 01:29:06 +00:00
|
|
|
platforms = platforms.unix;
|
2008-06-07 14:02:17 +00:00
|
|
|
};
|
2010-05-27 19:34:08 +00:00
|
|
|
}
|