@@ -1,24 +1,53 @@
11{ stdenv
2−, fetchurl, pkgconfig
3−, gtk2, glib, pango, libglade
2+, desktop-file-utils
3+, fetchurl
4+, gettext
5+, glib
6+, gtk3
7+, itstool
8+, libxml2
9+, meson, ninja
10+, pango
11+, pkgconfig
12+, polkit
13+, shared-mime-info
14+, systemd
15+, wrapGAppsHook
16+, gnome3
417}:
18+let
19+ version = "3.28.1";
20+ pname = "sysprof";
21+in stdenv.mkDerivation rec {
22+ name = "${pname}-${version}";
523
6−stdenv.mkDerivation rec {
7− name = "sysprof-1.2.0";
24+ outputs = [ "out" "lib" "dev" ];
825
926 src = fetchurl {
10− url = "http://www.sysprof.com/sysprof-1.2.0.tar.gz";
11− sha256 = "1wb4d844rsy8qjg3z5m6rnfm72da4xwzrrkkb1q5r10sq1pkrw5s";
27+ url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
28+ sha256 = "05534dvwrzrmryb4y2m1sb2q0r8i6nr88pzjg7xs5nr9zq8a87p3";
1229 };
1330
14− nativeBuildInputs = [ pkgconfig ];
15− buildInputs = [ gtk2 glib pango libglade ];
31+ nativeBuildInputs = [ desktop-file-utils gettext itstool libxml2 meson ninja pkgconfig shared-mime-info wrapGAppsHook ];
32+ buildInputs = [ glib gtk3 pango polkit systemd.dev systemd.lib ];
1633
17− meta = {
18− homepage = http://sysprof.com/;
19− description = "System-wide profiler for Linux";
20− license = stdenv.lib.licenses.gpl2Plus;
34+ mesonFlags = [
35+ "-Dsystemdunitdir=lib/systemd/system"
36+ ];
37+
38+ postInstall = ''
39+ rm $out/share/applications/mimeinfo.cache
40+ '';
2141
42+ passthru = {
43+ updateScript = gnome3.updateScript {
44+ packageName = pname;
45+ };
46+ };
47+
48+ meta = with stdenv.lib; {
49+ description = "System-wide profiler for Linux";
50+ homepage = https://wiki.gnome.org/Apps/Sysprof;
2251 longDescription = ''
2352 Sysprof is a sampling CPU profiler for Linux that uses the perf_event_open
2453 system call to profile the entire system, not just a single
@@ -26,6 +55,8 @@ stdenv.mkDerivation rec {
2655 do not need to be recompiled. In fact they don't even have to
2756 be restarted.
2857 '';
58+ license = licenses.gpl2Plus;
59+ maintainers = with maintainers; [ ];
2960 platforms = stdenv.lib.platforms.linux;
3061 };
3162}