nixpkgs/pkgs/development/tools/profiling/sysprof/default.nix
worldofpeace 69be72a64a desktop-files-utils: add setupHook to remove mimeinfo.cache
Post-Installation scripts are running `update-desktop-database -q`
creating these files which obviously results in a lot of collisions.

Much better solution than eventually noticing their existence and
removing them in postInstall.
2019-02-09 01:29:53 +00:00

70 lines
1.5 KiB
Nix

{ stdenv
, desktop-file-utils
, fetchurl
, gettext
, glib
, gtk3
, itstool
, libxml2
, meson, ninja
, pango
, pkgconfig
, polkit
, shared-mime-info
, systemd
, wrapGAppsHook
, gnome3
}:
let
version = "3.31.1";
pname = "sysprof";
in stdenv.mkDerivation rec {
name = "${pname}-${version}";
outputs = [ "out" "lib" "dev" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
sha256 = "0gjcd7agxn7cb8xnm8ldss1md7njwqzklqlsxclzqm87s7klnyrg";
};
nativeBuildInputs = [
desktop-file-utils
gettext
itstool
libxml2
meson
ninja
pkgconfig
shared-mime-info
wrapGAppsHook
gnome3.defaultIconTheme
];
buildInputs = [ glib gtk3 pango polkit systemd.dev systemd.lib ];
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.
'';
license = licenses.gpl2Plus;
maintainers = with maintainers; [ ];
platforms = stdenv.lib.platforms.linux;
};
}