2017-04-22 00:05:57 +01:00
|
|
|
{ stdenv, fetchurl, glib, pkgconfig, perl, intltool, gobjectIntrospection, libintlOrEmpty }:
|
2016-09-22 14:59:39 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libgtop-${version}";
|
2017-10-03 02:17:45 +01:00
|
|
|
major = "2.38";
|
|
|
|
version = "${major}.0";
|
2012-03-22 07:32:08 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2016-09-22 14:59:39 +01:00
|
|
|
url = "mirror://gnome/sources/libgtop/${major}/${name}.tar.xz";
|
2017-10-03 02:17:45 +01:00
|
|
|
sha256 = "04mnxgzyb26wqk6qij4iw8cxwl82r8pcsna5dg8vz2j3pdi0wv2g";
|
2012-03-22 07:32:08 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ glib ];
|
2017-04-22 00:05:57 +01:00
|
|
|
buildInputs = libintlOrEmpty;
|
2015-12-06 18:54:11 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig perl intltool gobjectIntrospection ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
2017-04-22 00:05:57 +01:00
|
|
|
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
|
|
|
|
|
2016-08-02 17:06:29 +01:00
|
|
|
meta = {
|
2017-04-22 00:05:57 +01:00
|
|
|
platforms = with stdenv.lib.platforms; linux ++ darwin;
|
2016-08-02 17:06:29 +01:00
|
|
|
};
|
2012-03-22 07:32:08 +00:00
|
|
|
}
|