2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
2024-01-13 08:15:51 +00:00
|
|
|
, fetchpatch
|
2023-04-12 12:48:02 +00:00
|
|
|
, pkg-config
|
|
|
|
, gtk3
|
|
|
|
, fribidi
|
|
|
|
, libpng
|
|
|
|
, popt
|
|
|
|
, libgsf
|
|
|
|
, enchant
|
|
|
|
, wv
|
|
|
|
, librsvg
|
|
|
|
, bzip2
|
|
|
|
, libjpeg
|
|
|
|
, perl
|
|
|
|
, boost
|
|
|
|
, libxslt
|
|
|
|
, goffice
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abiword";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "3.0.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.abisource.com/downloads/abiword/${version}/source/${pname}-${version}.tar.gz";
|
2022-01-13 20:06:32 +00:00
|
|
|
hash = "sha256-ElckfplwUI1tFFbT4zDNGQnEtCsl4PChvDJSbW86IbQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
patches = [
|
|
|
|
# Fix build with libxml2 2.12
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/World/AbiWord/-/commit/2a06be6a10a0718f8a3d8e00c317f5042c99a467.patch";
|
|
|
|
hash = "sha256-vfh81tGXe9dgnjcAtoWHOK8CtW7MZ75FFjnfKTkiKkk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2023-04-29 16:46:19 +00:00
|
|
|
perl
|
2023-04-12 12:48:02 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
2023-04-12 12:48:02 +00:00
|
|
|
gtk3
|
|
|
|
librsvg
|
|
|
|
bzip2
|
|
|
|
fribidi
|
|
|
|
libpng
|
|
|
|
popt
|
|
|
|
libgsf
|
|
|
|
enchant
|
|
|
|
wv
|
|
|
|
libjpeg
|
|
|
|
boost
|
|
|
|
libxslt
|
|
|
|
goffice
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
strictDeps = true;
|
2023-04-12 12:48:02 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Word processing program, similar to Microsoft Word";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "abiword";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.abisource.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ylwghst sna ];
|
|
|
|
};
|
|
|
|
}
|