Files

55 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchzip,
fetchpatch,
pkg-config,
boost,
doxygen,
icu,
librevenge,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libmspub";
version = "0.1.5";
src = fetchzip {
url = "https://dev-www.libreoffice.org/src/libmspub/libmspub-${finalAttrs.version}.tar.xz";
hash = "sha256-1At2aFAdPeoDKcsrv1hpZ1Eig0//tc3jaRpg1qn14xI=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
boost
doxygen
icu
librevenge
zlib
];
configureFlags = [ "--with-docs" ];
patches = [
(fetchpatch {
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/libmspub/-/raw/8721a52e09e14f905311abd3d5f2ad9bb3fe78a2/buildfix.diff";
hash = "sha256-evxEoQ0a6YHoymR+SEJwqfr7rkWp3JnsWOD1tfYfZOw=";
})
(fetchpatch {
url = "https://gitlab.archlinux.org/archlinux/packaging/packages/libmspub/-/raw/9d565015753364fa458da19e5dd4ce8224cf9246/includes.patch";
hash = "sha256-oHXEWSOSod9VnOrFtdMQcHYm7EdKkG+S7Q9rfM0DaTg=";
})
];
meta = {
changelog = "https://git.libreoffice.org/libmspub/+/refs/tags/libmspub-${finalAttrs.version}/NEWS";
description = "Microsoft Publisher import library";
homepage = "https://wiki.documentfoundation.org/DLP/Libraries/libmspub";
license = lib.licenses.mpl20;
maintainers = [ ];
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64;
};
})