Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 libwpg, 6 libwpd, 7 lcms, 8 pkg-config, 9 librevenge, 10 icu, 11 boost, 12 cppunit, 13 zlib, 14}: 15 16stdenv.mkDerivation rec { 17 pname = "libcdr"; 18 version = "0.1.8"; 19 20 src = fetchurl { 21 url = "https://dev-www.libreoffice.org/src/${pname}-${version}.tar.xz"; 22 hash = "sha256-ztZ3yDALKckdMAS7Hd3wuZdhv1VEmRwmwu6PQn6HGTw="; 23 }; 24 25 strictDeps = true; 26 27 buildInputs = [ 28 libwpg 29 libwpd 30 lcms 31 librevenge 32 icu 33 boost 34 cppunit 35 zlib 36 ]; 37 38 nativeBuildInputs = [ pkg-config ]; 39 40 enableParallelBuilding = true; 41 42 meta = { 43 description = "Library providing ability to interpret and import Corel Draw drawings into various applications"; 44 homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libcdr"; 45 platforms = lib.platforms.all; 46 license = lib.licenses.mpl20; 47 }; 48}