mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
e6964aea38
https://gitlab.gnome.org/GNOME/sysprof/-/compare/3.45.1...3.46.0 Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
86 lines
1.6 KiB
Nix
86 lines
1.6 KiB
Nix
{ stdenv
|
|
, lib
|
|
, desktop-file-utils
|
|
, fetchurl
|
|
, gettext
|
|
, glib
|
|
, gtk4
|
|
, json-glib
|
|
, itstool
|
|
, libadwaita
|
|
, libunwind
|
|
, libxml2
|
|
, meson
|
|
, ninja
|
|
, pango
|
|
, pkg-config
|
|
, polkit
|
|
, shared-mime-info
|
|
, systemd
|
|
, wrapGAppsHook4
|
|
, gnome
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sysprof";
|
|
version = "3.46.0";
|
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "PkMNV4FQqN0LB1sX0vzBunBNQogCYvDMZR8z5JO+QHE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
desktop-file-utils
|
|
gettext
|
|
itstool
|
|
libxml2
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
shared-mime-info
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
gtk4
|
|
json-glib
|
|
pango
|
|
polkit
|
|
systemd
|
|
libadwaita
|
|
libunwind
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dsystemdunitdir=lib/systemd/system"
|
|
# In a separate libsysprof-capture package
|
|
"-Dinstall-static=false"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
};
|
|
|
|
meta = with 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.
|
|
'';
|
|
license = licenses.gpl2Plus;
|
|
maintainers = teams.gnome.members;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|