2017-10-11 01:01:42 +02:00
|
|
|
{ stdenv
|
2020-08-12 20:17:51 +02:00
|
|
|
, lib
|
2017-12-31 15:52:50 +01:00
|
|
|
, desktop-file-utils
|
|
|
|
, fetchurl
|
2020-06-02 05:52:32 +02:00
|
|
|
, fetchpatch
|
2017-12-31 15:52:50 +01:00
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, itstool
|
2019-09-09 21:48:51 +02:00
|
|
|
, libdazzle
|
2017-12-31 15:52:50 +01:00
|
|
|
, libxml2
|
|
|
|
, meson, ninja
|
|
|
|
, pango
|
|
|
|
, pkgconfig
|
|
|
|
, polkit
|
|
|
|
, shared-mime-info
|
|
|
|
, systemd
|
|
|
|
, wrapGAppsHook
|
|
|
|
, gnome3
|
2017-10-11 01:01:42 +02:00
|
|
|
}:
|
2019-02-17 05:26:49 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-12-31 15:52:50 +01:00
|
|
|
pname = "sysprof";
|
2020-01-29 20:32:34 +01:00
|
|
|
version = "3.36.0";
|
2008-06-07 16:02:17 +02:00
|
|
|
|
2017-12-31 15:52:50 +01:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
2008-06-07 16:02:17 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-17 05:26:49 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-06-02 22:44:52 +02:00
|
|
|
sha256 = "024i0gzqnm79rpr4gqxdvcj6gvf82xdlcp2p1k9ikcppmi6xnw46";
|
2008-06-07 16:02:17 +02:00
|
|
|
};
|
|
|
|
|
2020-06-02 05:52:32 +02:00
|
|
|
patches = [
|
|
|
|
# Fix 32-bit builds
|
|
|
|
# https://gitlab.gnome.org/GNOME/sysprof/merge_requests/24
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/sysprof/commit/5dea152c7728f5a37370ad8a229115833e36b4f6.patch";
|
2020-06-02 22:44:52 +02:00
|
|
|
sha256 = "0c76s7r329pbdlmgvm3grn89iylrxv5wg87craqp937nwk3wb80g";
|
2020-06-02 05:52:32 +02:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-12-14 11:58:32 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
itstool
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
shared-mime-info
|
|
|
|
wrapGAppsHook
|
2019-02-13 22:47:50 +01:00
|
|
|
gnome3.adwaita-icon-theme
|
2018-12-14 11:58:32 +01:00
|
|
|
];
|
2020-08-12 20:17:51 +02:00
|
|
|
buildInputs = [ glib gtk3 pango polkit systemd.dev (lib.getLib systemd) libdazzle ];
|
2008-06-07 16:02:17 +02:00
|
|
|
|
2017-12-31 15:52:50 +01:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dsystemdunitdir=lib/systemd/system"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "System-wide profiler for Linux";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Sysprof";
|
2008-06-07 16:02:17 +02:00
|
|
|
longDescription = ''
|
2012-12-27 01:44:31 +01: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 16:02:17 +02: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 15:52:50 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2019-02-17 05:26:49 +01:00
|
|
|
platforms = platforms.linux;
|
2008-06-07 16:02:17 +02:00
|
|
|
};
|
2010-05-27 21:34:08 +02:00
|
|
|
}
|