1 { lib, stdenv, fetchurl, pkg-config
5 stdenv.mkDerivation rec {
10 url = "mirror://gnu/commoncpp/${pname}-${version}.tar.gz";
11 sha256 = "6ac9f76c2af010f97e916e4bae1cece341dc64ca28e3881ff4ddc3bc334060d7";
14 nativeBuildInputs = [ pkg-config ];
16 # use C++14 Standard until error handling code gets updated upstream
17 CXXFLAGS = [ "-std=c++14" ];
19 # disable flaky networking test
21 substituteInPlace test/stream.cpp \
22 --replace 'ifndef UCOMMON_SYSRUNTIME' 'if 0'
25 # ucommon.pc has link time depdendencies on -lusecure -lucommon -lgnutls
26 propagatedBuildInputs = [ gnutls ];
31 description = "C++ library to facilitate using C++ design patterns";
32 homepage = "https://www.gnu.org/software/commoncpp/";
33 license = lib.licenses.lgpl3Plus;
35 platforms = lib.platforms.linux;