Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, boost, doxygen, gperf, pkg-config, librevenge, libxml2, perl }: 2 3stdenv.mkDerivation rec { 4 pname = "libabw"; 5 version = "0.1.3"; 6 7 src = fetchurl { 8 url = "https://dev-www.libreoffice.org/src/libabw/${pname}-${version}.tar.xz"; 9 sha256 = "1vbfrmnvib3cym0yyyabnd8xpx4f7wp20vnn09s6dln347fajqz7"; 10 }; 11 12 # Boost 1.59 compatibility fix 13 # Attempt removing when updating 14 postPatch = '' 15 sed -i 's,^CPPFLAGS.*,\0 -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED,' src/lib/Makefile.in 16 ''; 17 18 nativeBuildInputs = [ pkg-config ]; 19 buildInputs = [ boost doxygen gperf librevenge libxml2 perl ]; 20 21 meta = with lib; { 22 homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libabw"; 23 description = "Library parsing abiword documents"; 24 platforms = platforms.unix; 25 license = licenses.mpl20; 26 }; 27}