567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
43 lines
716 B
Nix
43 lines
716 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
zlib,
|
|
pkg-config,
|
|
glib,
|
|
libgsf,
|
|
libxml2,
|
|
librevenge,
|
|
boost,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libwpd";
|
|
version = "0.10.3";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/libwpd/libwpd-${version}.tar.xz";
|
|
hash = "sha256-JGWwtmL9xdTjvrzcmnkCdxP7Ypyiv/BKPJJR/exC3Qk=";
|
|
};
|
|
|
|
patches = [ ./gcc-1.0.patch ];
|
|
|
|
buildInputs = [
|
|
glib
|
|
libgsf
|
|
libxml2
|
|
zlib
|
|
librevenge
|
|
boost
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
meta = {
|
|
description = "Library for importing and exporting WordPerfect documents";
|
|
homepage = "https://libwpd.sourceforge.net/";
|
|
license = lib.licenses.lgpl21;
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|