2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, fetchpatch, glib, pkgconfig, perl, gettext, gobject-introspection, libtool, gnome3, gtk-doc }:
|
2018-03-03 02:49:32 +00:00
|
|
|
let
|
|
|
|
pname = "libgtop";
|
|
|
|
version = "2.38.0";
|
|
|
|
in
|
2016-09-22 13:59:39 +00: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 00:12:11 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2017-10-03 01:17:45 +00:00
|
|
|
sha256 = "04mnxgzyb26wqk6qij4iw8cxwl82r8pcsna5dg8vz2j3pdi0wv2g";
|
2012-03-22 07:32:08 +00:00
|
|
|
};
|
|
|
|
|
2018-06-11 10:01:34 +00: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-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig gnome3.gnome-common libtool gtk-doc perl gettext gobject-introspection ];
|
2018-06-11 10:01:34 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
./autogen.sh
|
|
|
|
'';
|
2016-08-02 16:06:29 +00: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 10:01:34 +00:00
|
|
|
platforms = platforms.unix;
|
2016-08-02 16:06:29 +00:00
|
|
|
};
|
2012-03-22 07:32:08 +00:00
|
|
|
}
|