fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchurl, pkgconfig
2, openssl ? null, zlib ? null, gnutls ? null
3}:
4
5let
6 xor = a: b: (a || b) && (!(a && b));
7in
8
9assert xor (openssl != null) (gnutls != null);
10assert !(xor (openssl != null) (zlib != null));
11
12stdenv.mkDerivation rec {
13 name = "ucommon-6.3.1";
14
15 src = fetchurl {
16 url = "mirror://gnu/commoncpp/${name}.tar.gz";
17 sha256 = "1marbwbqnllhm9nh22lvyfjy802pgy1wx7j7kkpkasbm9r0sb6mm";
18 };
19
20 buildInputs = [ pkgconfig ];
21
22 # disable flaky networking test
23 postPatch = ''
24 substituteInPlace test/stream.cpp \
25 --replace 'ifndef UCOMMON_SYSRUNTIME' 'if 0'
26 '';
27
28 # ucommon.pc has link time depdendencies on -lssl, -lcrypto, -lz, -lgnutls
29 propagatedBuildInputs = [ openssl zlib gnutls ];
30
31 doCheck = true;
32
33 meta = {
34 description = "C++ library to facilitate using C++ design patterns";
35 homepage = http://www.gnu.org/software/commoncpp/;
36 license = stdenv.lib.licenses.lgpl3Plus;
37
38 maintainers = with stdenv.lib.maintainers; [ viric ];
39 platforms = stdenv.lib.platforms.linux;
40 };
41}