2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, fetchurl, fetchpatch, glib, pkgconfig, perl, gettext, gobjectIntrospection, libtool, gnome3, gtk-doc }:
|
2018-03-03 03:49:32 +01:00
|
|
|
let
|
|
|
|
pname = "libgtop";
|
|
|
|
version = "2.38.0";
|
|
|
|
in
|
2016-09-22 15:59:39 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 03:49:32 +01:00
|
|
|
name = "${pname}-${version}";
|
2012-03-22 08:32:08 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 02:12:11 +02:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2017-10-03 03:17:45 +02:00
|
|
|
sha256 = "04mnxgzyb26wqk6qij4iw8cxwl82r8pcsna5dg8vz2j3pdi0wv2g";
|
2012-03-22 08:32:08 +01:00
|
|
|
};
|
|
|
|
|
2018-06-11 12:01:34 +02:00
|
|
|
patches = [
|
|
|
|
# Fix darwin build
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://gitlab.gnome.org/GNOME/libgtop/commit/42b049f338363f92c1e93b4549fc944098eae674.patch;
|
|
|
|
sha256 = "0kf9ihgb0wqji6dcvg36s6igkh7b79k6y1n7w7wzsxya84x3hhyn";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2012-03-22 08:32:08 +01:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2018-06-11 12:01:34 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig gnome3.gnome-common libtool gtk-doc perl gettext gobjectIntrospection ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2016-08-02 18:06:29 +02:00
|
|
|
|
2018-03-03 03:49:32 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library that reads information about processes and the running system";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
2018-06-11 12:01:34 +02:00
|
|
|
platforms = platforms.unix;
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2012-03-22 08:32:08 +01:00
|
|
|
}
|