libgtop: supports darwin

This commit is contained in:
Matthew Bauer 2017-04-21 18:05:57 -05:00
parent 68b5c5e9a9
commit 2060f5b1fc
No known key found for this signature in database
GPG Key ID: E04D0AD9469141C3

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, glib, pkgconfig, perl, intltool, gobjectIntrospection }: { stdenv, fetchurl, glib, pkgconfig, perl, intltool, gobjectIntrospection, libintlOrEmpty }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libgtop-${version}"; name = "libgtop-${version}";
major = "2.34"; major = "2.34";
@ -10,9 +10,12 @@ stdenv.mkDerivation rec {
}; };
propagatedBuildInputs = [ glib ]; propagatedBuildInputs = [ glib ];
buildInputs = libintlOrEmpty;
nativeBuildInputs = [ pkgconfig perl intltool gobjectIntrospection ]; nativeBuildInputs = [ pkgconfig perl intltool gobjectIntrospection ];
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
meta = { meta = {
platforms = stdenv.lib.platforms.linux; platforms = with stdenv.lib.platforms; linux ++ darwin;
}; };
} }