about summary refs log tree commit diff
path: root/pkgs/development/libraries/libgtop/default.nix
blob: de72072e48be5561dde6cd98236cc8eb98b3ae2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ stdenv, fetchurl, glib, pkgconfig, perl, intltool, gobjectIntrospection, libintlOrEmpty }:
stdenv.mkDerivation rec {
  name = "libgtop-${version}";
  major = "2.34";
  version = "${major}.1";

  src = fetchurl {
    url = "mirror://gnome/sources/libgtop/${major}/${name}.tar.xz";
    sha256 = "c89978a76662b18d392edbe0d1b794f5a9a399a5ccf22a02d5b9e28b5ed609e2";
  };

  propagatedBuildInputs = [ glib ];
  buildInputs = libintlOrEmpty;
  nativeBuildInputs = [ pkgconfig perl intltool gobjectIntrospection ];

  NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";

  meta = {
    platforms = with stdenv.lib.platforms; linux ++ darwin;
  };
}