tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
libinfinity: supports darwin
Matthew Bauer
9 years ago
3e6579ee
fe9b9e7f
+6
-3
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libinfinity
default.nix
+6
-3
pkgs/development/libraries/libinfinity/default.nix
···
3
3
, documentation ? false # build documentation
4
4
, avahiSupport ? false # build support for Avahi in libinfinity
5
5
, stdenv, fetchurl, pkgconfig, glib, libxml2, gnutls, gsasl
6
6
-
, gtk2 ? null, gtkdoc ? null, avahi ? null, libdaemon ? null, libidn, gss }:
6
6
+
, gtk2 ? null, gtkdoc ? null, avahi ? null, libdaemon ? null, libidn, gss
7
7
+
, libintlOrEmpty }:
7
8
8
9
let
9
10
edf = flag: feature: (if flag then "--with-" else "--without-") + feature;
···
17
18
sha256 = "1idsxb6rz4i55g3vi2sv7hmm57psbccpb57yc4jgphaq6ydgqsr6";
18
19
};
19
20
20
20
-
buildInputs = [ pkgconfig glib libxml2 gsasl libidn gss ]
21
21
+
buildInputs = [ pkgconfig glib libxml2 gsasl libidn gss libintlOrEmpty ]
21
22
++ optional gtkWidgets gtk2
22
23
++ optional documentation gtkdoc
23
24
++ optional avahiSupport avahi
···
34
35
${edf avahiSupport "avahi"}
35
36
'';
36
37
38
38
+
NIX_LDFLAGS = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
39
39
+
37
40
meta = {
38
41
homepage = http://gobby.0x539.de/;
39
42
description = "An implementation of the Infinote protocol written in GObject-based C";
40
43
license = stdenv.lib.licenses.lgpl2Plus;
41
44
maintainers = [ stdenv.lib.maintainers.phreedom ];
42
42
-
platforms = stdenv.lib.platforms.linux;
45
45
+
platforms = with stdenv.lib.platforms; linux ++ darwin;
43
46
};
44
47
45
48
}