2015-04-06 18:22:53 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig
|
|
|
|
, openssl ? null, zlib ? null, gnutls ? null
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
xor = a: b: (a || b) && (!(a && b));
|
|
|
|
in
|
|
|
|
|
|
|
|
assert xor (openssl != null) (gnutls != null);
|
|
|
|
assert !(xor (openssl != null) (zlib != null));
|
2011-01-19 21:17:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2015-04-06 18:22:53 +00:00
|
|
|
name = "ucommon-6.3.1";
|
2011-01-19 21:17:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-18 12:46:11 +00:00
|
|
|
url = "mirror://gnu/commoncpp/${name}.tar.gz";
|
2015-04-06 18:22:53 +00:00
|
|
|
sha256 = "1marbwbqnllhm9nh22lvyfjy802pgy1wx7j7kkpkasbm9r0sb6mm";
|
2011-01-19 21:17:05 +00:00
|
|
|
};
|
|
|
|
|
2015-04-06 18:22:53 +00:00
|
|
|
buildInputs = [ pkgconfig ];
|
2011-01-19 21:17:05 +00:00
|
|
|
|
2015-04-06 18:22:53 +00:00
|
|
|
# ucommon.pc has link time depdendencies on -lssl, -lcrypto, -lz, -lgnutls
|
|
|
|
propagatedBuildInputs = [ openssl zlib gnutls ];
|
2011-04-12 08:05:35 +00:00
|
|
|
|
2011-01-19 21:17:05 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
2014-08-24 14:21:08 +00:00
|
|
|
description = "C++ library to facilitate using C++ design patterns";
|
2011-03-10 16:27:53 +00:00
|
|
|
homepage = http://www.gnu.org/software/commoncpp/;
|
2014-06-19 04:19:00 +00:00
|
|
|
license = stdenv.lib.licenses.lgpl3Plus;
|
2011-01-19 21:17:05 +00:00
|
|
|
|
2013-08-16 21:44:33 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ viric ];
|
2011-01-19 21:17:05 +00:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|