2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv
|
2019-03-21 14:02:29 +00:00
|
|
|
, fetchgit
|
2019-09-19 04:43:34 +00:00
|
|
|
, fetchpatch
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2019-03-21 14:02:29 +00:00
|
|
|
, glib
|
|
|
|
, icu
|
|
|
|
, gobject-introspection
|
|
|
|
, dbus-glib
|
2019-09-19 04:43:34 +00:00
|
|
|
, vala
|
2019-03-21 14:02:29 +00:00
|
|
|
, python3
|
|
|
|
, autoreconfHook
|
|
|
|
}:
|
2016-03-28 13:45:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-21 14:02:29 +00:00
|
|
|
pname = "dee";
|
|
|
|
version = "unstable-2017-06-16";
|
2016-03-28 13:45:10 +00:00
|
|
|
|
2019-03-21 14:02:29 +00:00
|
|
|
outputs = [ "out" "dev" "py" ];
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://git.launchpad.net/ubuntu/+source/dee";
|
2019-09-19 04:43:34 +00:00
|
|
|
rev = "import/1.2.7+17.10.20170616-4ubuntu3";
|
|
|
|
sha256 = "09blrdj7229vscp4mkg0fabmcvc6jdpamvblrq86rbky7j2nnwlk";
|
2016-03-28 13:45:10 +00:00
|
|
|
};
|
|
|
|
|
2019-03-21 14:02:29 +00:00
|
|
|
patches = [
|
|
|
|
"${src}/debian/patches/gtkdocize.patch"
|
|
|
|
"${src}/debian/patches/strict-prototype.patch"
|
2019-09-19 04:43:34 +00:00
|
|
|
"${src}/debian/patches/vapi-skip-properties.patch"
|
2021-10-07 19:44:55 +00:00
|
|
|
./0001-Fix-build-with-Vala-0.54.patch
|
2019-09-19 04:43:34 +00:00
|
|
|
|
|
|
|
# Fixes glib 2.62 deprecations
|
|
|
|
(fetchpatch {
|
|
|
|
name = "dee-1.2.7-deprecated-g_type_class_add_private.patch";
|
|
|
|
url = "https://src.fedoraproject.org/rpms/dee/raw/1a9a4ce3377074fabfca653ffe0287cd73aef82f/f/dee-1.2.7-deprecated-g_type_class_add_private.patch";
|
|
|
|
sha256 = "13nyprq7bb7lnzkcb7frcpzidbl836ycn5bvmwa2k0nhmj6ycbx5";
|
|
|
|
})
|
2019-03-21 14:02:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
pkg-config
|
2019-09-19 04:43:34 +00:00
|
|
|
vala
|
2019-03-21 14:02:29 +00:00
|
|
|
autoreconfHook
|
|
|
|
gobject-introspection
|
|
|
|
python3
|
|
|
|
];
|
2016-03-28 13:45:10 +00:00
|
|
|
|
2019-03-21 14:02:29 +00:00
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
icu
|
|
|
|
dbus-glib
|
|
|
|
];
|
2017-08-26 08:48:06 +00:00
|
|
|
|
2019-03-21 14:02:29 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-gtk-doc"
|
2019-09-03 16:38:57 +00:00
|
|
|
"--with-pygi-overrides-dir=${placeholder "py"}/${python3.sitePackages}/gi/overrides"
|
2019-03-21 14:02:29 +00:00
|
|
|
];
|
2016-03-28 13:45:10 +00:00
|
|
|
|
2023-03-24 08:12:42 +00:00
|
|
|
# Compilation fails after a change in glib where
|
|
|
|
# g_string_free now returns a value
|
|
|
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=unused-result";
|
|
|
|
|
2020-12-13 16:26:48 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2016-03-28 13:45:10 +00:00
|
|
|
description = "A library that uses DBus to provide objects allowing you to create Model-View-Controller type programs across DBus";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://launchpad.net/dee";
|
2016-03-28 13:45:10 +00:00
|
|
|
license = licenses.lgpl3;
|
|
|
|
platforms = platforms.linux;
|
2021-05-05 09:25:45 +00:00
|
|
|
maintainers = with maintainers; [ abbradar ];
|
2016-03-28 13:45:10 +00:00
|
|
|
};
|
|
|
|
}
|