depot/third_party/nixpkgs/pkgs/development/tools/profiling/sysprof/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

86 lines
1.6 KiB
Nix

{ stdenv
, lib
, desktop-file-utils
, fetchurl
, gettext
, glib
, gtk4
, json-glib
, itstool
, libadwaita
, libdex
, libpanel
, libunwind
, libxml2
, meson
, ninja
, pkg-config
, polkit
, shared-mime-info
, systemd
, wrapGAppsHook4
, gnome
}:
stdenv.mkDerivation rec {
pname = "sysprof";
version = "45.1";
outputs = [ "out" "lib" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "Mju51YVhPWDEOUYDMUUAEfK5Cz1ScmJb2FjaTBnfLPk=";
};
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
libxml2
meson
ninja
pkg-config
shared-mime-info
wrapGAppsHook4
];
buildInputs = [
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 = pname;
};
};
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.gpl3Plus;
maintainers = teams.gnome.members;
platforms = platforms.unix;
};
}