2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config
|
2022-08-22 12:31:38 +00:00
|
|
|
, gnutls
|
2015-04-06 18:22:53 +00:00
|
|
|
}:
|
|
|
|
|
2011-01-19 21:17:05 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-06-22 13:21:29 +00:00
|
|
|
pname = "ucommon";
|
|
|
|
version = "7.0.0";
|
2011-01-19 21:17:05 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-06-22 13:21:29 +00:00
|
|
|
url = "mirror://gnu/commoncpp/${pname}-${version}.tar.gz";
|
2017-04-23 20:45:29 +00:00
|
|
|
sha256 = "6ac9f76c2af010f97e916e4bae1cece341dc64ca28e3881ff4ddc3bc334060d7";
|
2011-01-19 21:17:05 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2011-01-19 21:17:05 +00:00
|
|
|
|
2022-05-19 15:29:28 +00:00
|
|
|
# use C++14 Standard until error handling code gets updated upstream
|
|
|
|
CXXFLAGS = [ "-std=c++14" ];
|
|
|
|
|
2016-08-29 01:31:47 +00:00
|
|
|
# disable flaky networking test
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace test/stream.cpp \
|
|
|
|
--replace 'ifndef UCOMMON_SYSRUNTIME' 'if 0'
|
|
|
|
'';
|
|
|
|
|
2022-08-22 12:31:38 +00:00
|
|
|
# ucommon.pc has link time depdendencies on -lusecure -lucommon -lgnutls
|
|
|
|
propagatedBuildInputs = [ 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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.gnu.org/software/commoncpp/";
|
2021-01-21 17:00:13 +00:00
|
|
|
license = lib.licenses.lgpl3Plus;
|
|
|
|
maintainers = with lib.maintainers; [ ];
|
|
|
|
platforms = lib.platforms.linux;
|
2011-01-19 21:17:05 +00:00
|
|
|
};
|
|
|
|
}
|