1{ lib, stdenv
2, fetchurl
3, glib
4, pkg-config
5, perl
6, gettext
7, gobject-introspection
8, gnome
9, gtk-doc
10}:
11
12stdenv.mkDerivation rec {
13 pname = "libgtop";
14 version = "2.40.0";
15
16 outputs = [ "out" "dev" ];
17
18 src = fetchurl {
19 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
20 sha256 = "1m6jbqk8maa52gxrf223442fr5bvvxgb7ham6v039i3r1i62gwvq";
21 };
22
23 nativeBuildInputs = [
24 pkg-config
25 gtk-doc
26 perl
27 gettext
28 gobject-introspection
29 ];
30
31 propagatedBuildInputs = [
32 glib
33 ];
34
35 passthru = {
36 updateScript = gnome.updateScript {
37 packageName = pname;
38 versionPolicy = "odd-unstable";
39 };
40 };
41
42 meta = with lib; {
43 description = "A library that reads information about processes and the running system";
44 license = licenses.gpl2Plus;
45 maintainers = teams.gnome.members;
46 platforms = platforms.unix;
47 };
48}