nixpkgs/pkgs/development/libraries/libgtop/default.nix

42 lines
1.2 KiB
Nix
Raw Normal View History

{ 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}";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
2017-10-03 02:17:45 +01:00
sha256 = "04mnxgzyb26wqk6qij4iw8cxwl82r8pcsna5dg8vz2j3pdi0wv2g";
};
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";
})
];
propagatedBuildInputs = [ glib ];
2018-06-11 11:01:34 +01:00
nativeBuildInputs = [ pkgconfig gnome3.gnome-common libtool gtk-doc perl gettext gobjectIntrospection ];
preConfigure = ''
./autogen.sh
'';
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;
};
}