2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, fetchurl, fetchpatch, glib, pkgconfig, perl, gettext, gobjectIntrospection, libtool, gnome3, gtk-doc }:
|
2018-03-03 02:49:32 +00:00
|
|
|
let
|
|
|
|
pname = "libgtop";
|
|
|
|
version = "2.38.0";
|
|
|
|
in
|
2016-09-22 14:59:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-03 02:49:32 +00:00
|
|
|
name = "${pname}-${version}";
|
2012-03-22 07:32:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2017-10-03 02:17:45 +01:00
|
|
|
sha256 = "04mnxgzyb26wqk6qij4iw8cxwl82r8pcsna5dg8vz2j3pdi0wv2g";
|
2012-03-22 07:32:08 +00:00
|
|
|
};
|
|
|
|
|
2018-06-11 11:01:34 +01:00
|
|
|
patches = [
|
|
|
|
# Fix darwin build
|
|
|
|
(fetchpatch {
|
|
|
|
url = https://gitlab.gnome.org/GNOME/libgtop/commit/42b049f338363f92c1e93b4549fc944098eae674.patch;
|
|
|
|
sha256 = "0kf9ihgb0wqji6dcvg36s6igkh7b79k6y1n7w7wzsxya84x3hhyn";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2012-03-22 07:32:08 +00:00
|
|
|
propagatedBuildInputs = [ glib ];
|
2018-06-11 11:01:34 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gnome3.gnome-common libtool gtk-doc perl gettext gobjectIntrospection ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2018-03-03 02:49:32 +00: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 11:01:34 +01:00
|
|
|
platforms = platforms.unix;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2012-03-22 07:32:08 +00:00
|
|
|
}
|