2019-10-28 01:31:37 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
2020-03-20 02:01:55 +00:00
|
|
|
, fetchpatch
|
2019-10-28 01:31:37 +00:00
|
|
|
, pkgconfig
|
2019-11-30 23:11:47 +00:00
|
|
|
, dconf
|
2019-10-28 01:31:37 +00:00
|
|
|
, telepathy-glib
|
2019-10-28 01:34:38 +00:00
|
|
|
, python3
|
2019-10-28 01:31:37 +00:00
|
|
|
, libxslt
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
2012-03-14 16:28:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "telepathy-mission-control";
|
2019-10-28 01:34:38 +00:00
|
|
|
version = "5.16.5";
|
2012-03-14 16:28:11 +00:00
|
|
|
|
2019-10-28 23:53:11 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ];
|
|
|
|
|
2012-03-14 16:28:11 +00:00
|
|
|
src = fetchurl {
|
2019-10-28 01:31:37 +00:00
|
|
|
url = "https://telepathy.freedesktop.org/releases/${pname}/${pname}-${version}.tar.gz";
|
2019-10-28 01:34:38 +00:00
|
|
|
sha256 = "00xxv38cfdirnfvgyd56m60j0nkmsv5fz6p2ydyzsychicxl6ssc";
|
2012-03-14 16:28:11 +00:00
|
|
|
};
|
|
|
|
|
2020-03-20 02:01:55 +00:00
|
|
|
patches = [
|
|
|
|
# Fix property name (new GLib is stricter)
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/81626#issuecomment-601494939
|
|
|
|
# https://gitlab.gnome.org/GNOME/polari/-/merge_requests/141
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/TelepathyIM/telepathy-mission-control/commit/d8dab08fe8db137c6bbd8bbdc3d9b01d98c48910.patch";
|
2020-06-02 20:44:52 +00:00
|
|
|
sha256 = "1rchl0lyfj5c3yhl63spzvx9b6ny3967dlq4hgp9qhqn0zjra3sb";
|
2020-03-20 02:01:55 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-10-28 01:31:37 +00:00
|
|
|
buildInputs = [
|
2019-10-28 01:34:38 +00:00
|
|
|
python3
|
2019-10-28 01:31:37 +00:00
|
|
|
]; # ToDo: optional stuff missing
|
2012-03-14 16:28:11 +00:00
|
|
|
|
2019-10-28 01:31:37 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
libxslt
|
|
|
|
makeWrapper
|
|
|
|
];
|
2014-04-08 13:02:15 +00:00
|
|
|
|
2019-10-28 23:25:26 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
telepathy-glib
|
|
|
|
];
|
|
|
|
|
2014-06-19 21:36:48 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
2019-10-28 23:53:11 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2014-04-08 13:02:15 +00:00
|
|
|
preFixup = ''
|
2019-10-28 23:53:11 +00:00
|
|
|
wrapProgram "$lib/libexec/mission-control-5" \
|
2019-11-30 23:11:47 +00:00
|
|
|
--prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
|
2014-04-08 13:02:15 +00:00
|
|
|
--prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
2014-06-19 21:36:48 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An account manager and channel dispatcher for the Telepathy framework";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://telepathy.freedesktop.org/components/telepathy-mission-control/";
|
2014-06-19 21:36:48 +00:00
|
|
|
license = licenses.lgpl21;
|
2017-12-18 03:58:40 +00:00
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
2014-06-19 21:36:48 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
2012-03-14 16:28:11 +00:00
|
|
|
}
|