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

22 lines
645 B
Nix
Raw Normal View History

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