depot/third_party/nixpkgs/pkgs/development/libraries/libcdr/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

26 lines
802 B
Nix

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