2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk3, fribidi
|
2020-04-24 23:36:52 +00:00
|
|
|
, libpng, popt, libgsf, enchant, wv, librsvg, bzip2, libjpeg, perl
|
2021-05-20 23:08:51 +00:00
|
|
|
, boost, libxslt, goffice, wrapGAppsHook, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abiword";
|
|
|
|
version = "3.0.4";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.abisource.com/downloads/abiword/${version}/source/${pname}-${version}.tar.gz";
|
|
|
|
sha256 = "1mx5l716n0z5788i19qmad30cck4v9ggr071cafw2nrf375rcc79";
|
|
|
|
};
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# Switch to using enchant2; note by the next update enchant2 should be
|
|
|
|
# default and this patch can be removed.
|
|
|
|
# https://github.com/NixOS/nixpkgs/issues/38506
|
|
|
|
(fetchurl {
|
2021-07-14 22:03:04 +00:00
|
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d3ff951d3c7249927e7113b3de1653031db24596/abiword/trunk/enchant-2.1.patch";
|
2020-04-24 23:36:52 +00:00
|
|
|
sha256 = "444dc2aadea3c80310a509b690097541573f6d2652c573d04da66a0f385fcfb2";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace 'enchant >=' 'enchant-2 >='
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3 librsvg bzip2 fribidi libpng popt
|
2021-05-20 23:08:51 +00:00
|
|
|
libgsf enchant wv libjpeg perl boost libxslt goffice gnome.adwaita-icon-theme
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
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";
|
|
|
|
homepage = "https://www.abisource.com/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ pSub ylwghst sna ];
|
|
|
|
};
|
|
|
|
}
|