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

33 lines
948 B
Nix
Raw Normal View History

2018-03-03 03:49:32 +01:00
{ stdenv, fetchurl, glib, pkgconfig, perl, gettext, gobjectIntrospection, libintlOrEmpty, gnome3 }:
let
pname = "libgtop";
version = "2.38.0";
in
2016-09-22 15:59:39 +02:00
stdenv.mkDerivation rec {
2018-03-03 03:49:32 +01:00
name = "${pname}-${version}";
src = fetchurl {
2018-03-03 03:49:32 +01:00
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
2017-10-03 03:17:45 +02:00
sha256 = "04mnxgzyb26wqk6qij4iw8cxwl82r8pcsna5dg8vz2j3pdi0wv2g";
};
propagatedBuildInputs = [ glib ];
2017-04-22 01:05:57 +02:00
buildInputs = libintlOrEmpty;
2018-03-03 03:49:32 +01:00
nativeBuildInputs = [ pkgconfig perl gettext gobjectIntrospection ];
2017-04-22 01:05:57 +02:00
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
2018-03-03 03:49:32 +01:00
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "A library that reads information about processes and the running system";
license = licenses.gpl2Plus;
maintainers = gnome3.maintainers;
platforms = with platforms; linux ++ darwin;
};
}