1 { lib, stdenv, fetchurl, fetchpatch, libwpg, libwpd, lcms, pkg-config, librevenge, icu, boost, cppunit }:
3 stdenv.mkDerivation rec {
8 url = "https://dev-www.libreoffice.org/src/${pname}-${version}.tar.xz";
9 hash = "sha256-VmYknWE0ZrmqHph+pBCcBDZYZuknfYD2zZZj6GuOzdQ=";
14 buildInputs = [ libwpg libwpd lcms librevenge icu boost cppunit ];
16 nativeBuildInputs = [ pkg-config ];
18 CXXFLAGS="--std=gnu++0x"; # For c++11 constants in lcms2.h
21 description = "A library providing ability to interpret and import Corel Draw drawings into various applications";
22 homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libcdr";
23 platforms = lib.platforms.all;
24 license = lib.licenses.mpl20;