2021-01-17 03:09:27 +01:00
|
|
|
{ lib, stdenv, fetchurl, pkg-config, gtk3, fribidi
|
2014-09-26 22:26:32 +02:00
|
|
|
, libpng, popt, libgsf, enchant, wv, librsvg, bzip2, libjpeg, perl
|
2021-05-07 23:18:14 +02:00
|
|
|
, boost, libxslt, goffice, wrapGAppsHook, gnome
|
2006-07-08 14:44:00 +02:00
|
|
|
}:
|
|
|
|
|
2014-09-26 22:26:32 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "abiword";
|
2020-03-14 08:32:47 +01:00
|
|
|
version = "3.0.4";
|
2012-12-12 06:02:05 +01:00
|
|
|
|
2006-07-08 14:44:00 +02:00
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "https://www.abisource.com/downloads/abiword/${version}/source/${pname}-${version}.tar.gz";
|
2020-03-14 08:32:47 +01:00
|
|
|
sha256 = "1mx5l716n0z5788i19qmad30cck4v9ggr071cafw2nrf375rcc79";
|
2006-07-08 14:44:00 +02:00
|
|
|
};
|
|
|
|
|
2012-12-12 06:02:50 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-11-03 15:38:33 +01:00
|
|
|
patches = [
|
2020-03-14 08:32:47 +01:00
|
|
|
# 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
|
2017-11-26 00:49:11 +01:00
|
|
|
(fetchurl {
|
2021-07-14 02:41:39 +02:00
|
|
|
url = "https://raw.githubusercontent.com/archlinux/svntogit-packages/d3ff951d3c7249927e7113b3de1653031db24596/abiword/trunk/enchant-2.1.patch";
|
2020-03-14 08:32:47 +01:00
|
|
|
sha256 = "444dc2aadea3c80310a509b690097541573f6d2652c573d04da66a0f385fcfb2";
|
2017-11-26 00:49:11 +01:00
|
|
|
})
|
2017-11-03 15:38:33 +01:00
|
|
|
];
|
|
|
|
|
2020-03-14 08:32:47 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace 'enchant >=' 'enchant-2 >='
|
|
|
|
'';
|
|
|
|
|
2021-01-17 03:09:27 +01:00
|
|
|
nativeBuildInputs = [ pkg-config wrapGAppsHook ];
|
2013-10-05 16:22:46 +02:00
|
|
|
|
2018-03-29 10:25:32 +02:00
|
|
|
buildInputs = [
|
|
|
|
gtk3 librsvg bzip2 fribidi libpng popt
|
2021-05-07 23:18:14 +02:00
|
|
|
libgsf enchant wv libjpeg perl boost libxslt goffice gnome.adwaita-icon-theme
|
2018-03-29 10:25:32 +02:00
|
|
|
];
|
2015-06-11 21:06:35 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2014-06-23 12:44:21 +02:00
|
|
|
description = "Word processing program, similar to Microsoft Word";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://www.abisource.com/";
|
2014-06-23 12:54:46 +02:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2020-03-14 08:32:47 +01:00
|
|
|
maintainers = with maintainers; [ pSub ylwghst sna ];
|
2013-10-05 16:22:46 +02:00
|
|
|
};
|
2006-07-08 14:44:00 +02:00
|
|
|
}
|