2023-04-12 12:48:02 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2024-10-29 11:11:06 +00:00
|
|
|
, fetchFromGitLab
|
2024-01-13 08:15:51 +00:00
|
|
|
, fetchpatch
|
2024-10-29 11:11:06 +00:00
|
|
|
, autoreconfHook269
|
|
|
|
, autoconf-archive
|
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
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.gnome.org";
|
|
|
|
owner = "World";
|
|
|
|
repo = "AbiWord";
|
|
|
|
rev = "refs/tags/release-${version}";
|
|
|
|
hash = "sha256-Z55qPm4MYwbG8bvXpX2TH8bxQaJjvb3Em1ymM1XwGqo=";
|
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 = [
|
2024-10-29 11:11:06 +00:00
|
|
|
autoreconfHook269
|
|
|
|
autoconf-archive
|
2023-04-12 12:48:02 +00:00
|
|
|
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;
|
|
|
|
|
2024-10-29 11:11:06 +00:00
|
|
|
postPatch = ''
|
|
|
|
patchShebangs ./tools/cdump/xp/cdump.pl ./po/ui-backport.pl
|
|
|
|
'';
|
|
|
|
|
|
|
|
preAutoreconf = ''
|
|
|
|
./autogen-common.sh
|
|
|
|
'';
|
|
|
|
|
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";
|
2024-10-29 11:11:06 +00:00
|
|
|
homepage = "https://gitlab.gnome.org/World/AbiWord/";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ylwghst sna ];
|
|
|
|
};
|
|
|
|
}
|