1 { lib, stdenv, fetchFromGitHub, zlib, imagemagick, libpng, glib, pkg-config, libgsf
7 stdenv.mkDerivation (finalAttrs: {
11 src = fetchFromGitHub {
14 rev = "wv-${builtins.replaceStrings ["."] ["-"] finalAttrs.version}";
15 hash = "sha256-xcC+/M1EzFqQFeF5Dw9qd8VIy7r8JdKMp2X/GHkFiPA=";
18 nativeBuildInputs = [ pkg-config autoreconfHook ];
19 buildInputs = [ zlib imagemagick libpng glib libgsf libxml2 bzip2 ];
22 "PKG_CONFIG=${buildPackages.pkg-config}/bin/${buildPackages.pkg-config.targetPrefix}pkg-config"
25 env.NIX_CFLAGS_COMPILE =
26 # Suppress incompatible function pointer and int conversion errors when building with newer versions of clang 16.
27 lib.optionalString stdenv.cc.isClang "-Wno-error=incompatible-function-pointer-types -Wno-error=int-conversion";
29 hardeningDisable = [ "format" ];
31 enableParallelBuilding = true;
33 # autoreconfHook fails hard if these two files do not exist.
34 # The extra move is to work around case-insensitive filesystems.
37 mv CHANGELOG ChangeLog~ && mv ChangeLog~ ChangeLog
41 homepage = "https://github.com/AbiWord/wv";
42 description = "Converter from Microsoft Word formats to human-editable ones";
43 platforms = lib.platforms.unix;
44 license = lib.licenses.gpl2Plus;