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