nixpkgs/pkgs/development/tools/profiling/sysprof/default.nix

80 lines
1.8 KiB
Nix
Raw Normal View History

{ stdenv
2017-12-31 14:52:50 +00:00
, desktop-file-utils
, fetchurl
, fetchpatch
2017-12-31 14:52:50 +00:00
, gettext
, glib
, gtk3
, itstool
2019-09-09 20:48:51 +01:00
, libdazzle
2017-12-31 14:52:50 +00:00
, libxml2
, meson, ninja
, pango
, pkgconfig
, polkit
, shared-mime-info
, systemd
, wrapGAppsHook
, gnome3
}:
stdenv.mkDerivation rec {
2017-12-31 14:52:50 +00:00
pname = "sysprof";
2020-01-29 19:32:34 +00:00
version = "3.36.0";
2017-12-31 14:52:50 +00:00
outputs = [ "out" "lib" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-01-29 19:32:34 +00:00
sha256 = "hnDbTaz3shnTDFdcRlsXyO1nJNut40fyzelUi/8DkQg=";
};
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";
sha256 = "D6DFx+T2jHSxyuygx8vumfqYkM1v1P0qbesmMfLR5jA=";
})
];
2018-12-14 10:58:32 +00:00
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
libxml2
meson
ninja
pkgconfig
shared-mime-info
wrapGAppsHook
2019-02-13 21:47:50 +00:00
gnome3.adwaita-icon-theme
2018-12-14 10:58:32 +00:00
];
2019-09-09 20:48:51 +01:00
buildInputs = [ glib gtk3 pango polkit systemd.dev systemd.lib libdazzle ];
2017-12-31 14:52:50 +00:00
mesonFlags = [
"-Dsystemdunitdir=lib/systemd/system"
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "System-wide profiler for Linux";
homepage = "https://wiki.gnome.org/Apps/Sysprof";
longDescription = ''
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.
'';
2017-12-31 14:52:50 +00:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
platforms = platforms.linux;
};
}