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