Files
nixpkgs/pkgs/development/tools/profiling/sysprof/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

94 lines
1.7 KiB
Nix

{
stdenv,
lib,
desktop-file-utils,
fetchurl,
elfutils,
gettext,
glib,
gtk4,
json-glib,
itstool,
libadwaita,
libdex,
libpanel,
libunwind,
libxml2,
meson,
ninja,
pkg-config,
polkit,
shared-mime-info,
systemd,
wrapGAppsHook4,
gnome,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "sysprof";
version = "49.0";
outputs = [
"out"
"lib"
"dev"
];
src = fetchurl {
url = "mirror://gnome/sources/sysprof/${lib.versions.major finalAttrs.version}/sysprof-${finalAttrs.version}.tar.xz";
hash = "sha256-/wQTljd4XIQZSIYgh6QyO5gWgNlCKWQJMhtXT8soKHg=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
libxml2
meson
ninja
pkg-config
shared-mime-info
wrapGAppsHook4
];
buildInputs = [
elfutils
glib
gtk4
json-glib
polkit
systemd
libadwaita
libdex
libpanel
libunwind
];
mesonFlags = [
"-Dsystemdunitdir=lib/systemd/system"
# In a separate libsysprof-capture package
"-Dinstall-static=false"
];
passthru = {
updateScript = gnome.updateScript {
packageName = "sysprof";
};
};
meta = {
description = "System-wide profiler for Linux";
homepage = "https://gitlab.gnome.org/GNOME/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 = lib.licenses.gpl3Plus;
teams = [ lib.teams.gnome ];
platforms = lib.platforms.unix;
};
})