1{ stdenv
2, lib
3, fetchurl
4, autoreconfHook
5, pkg-config
6, intltool
7, gtk-doc
8, glib
9, avahi
10, gnutls
11, libuuid
12, libsoup
13, gtk3
14, gnome
15}:
16
17stdenv.mkDerivation (finalAttrs: {
18 pname = "libepc";
19 version = "0.4.6";
20
21 outputs = [ "out" "dev" "devdoc" ];
22
23 src = fetchurl {
24 url = "mirror://gnome/sources/libepc/${lib.versions.majorMinor finalAttrs.version}/libepc-${finalAttrs.version}.tar.xz";
25 sha256 = "1s3svb2slqjsrqfv50c2ymnqcijcxb5gnx6bfibwh9l5ga290n91";
26 };
27
28 patches = [
29 # Remove dependency that is only needed by uninstalled examples.
30 ./no-avahi-ui.patch
31 ];
32
33 nativeBuildInputs = [
34 autoreconfHook
35 gnome.gnome-common
36 pkg-config
37 intltool
38 gtk-doc
39 ];
40
41 buildInputs = [
42 glib
43 libuuid
44 gtk3
45 ];
46
47 propagatedBuildInputs = [
48 avahi
49 gnutls
50 libsoup
51 ];
52
53 enableParallelBuilding = true;
54
55 passthru = {
56 updateScript = gnome.updateScript {
57 packageName = "libepc";
58 versionPolicy = "odd-unstable";
59 };
60 };
61
62 meta = with lib; {
63 description = "Easy Publish and Consume Library";
64 homepage = "https://wiki.gnome.org/Projects/libepc";
65 license = licenses.lgpl21Plus;
66 maintainers = teams.gnome.members;
67 platforms = platforms.linux;
68 };
69})