nixpkgs/pkgs/applications/office/abiword/default.nix

46 lines
1.4 KiB
Nix
Raw Normal View History

2018-03-29 09:25:32 +01:00
{ stdenv, fetchurl, pkgconfig, gtk3, fribidi
, libpng, popt, libgsf, enchant, wv, librsvg, bzip2, libjpeg, perl
2019-02-13 21:47:50 +00:00
, boost, libxslt, goffice, wrapGAppsHook, gnome3
}:
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;
2017-11-03 14:38:33 +00:00
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
2017-11-25 23:49:11 +00:00
(fetchurl {
url = "https://git.archlinux.org/svntogit/packages.git/plain/trunk/enchant-2.1.patch?h=packages/abiword";
sha256 = "444dc2aadea3c80310a509b690097541573f6d2652c573d04da66a0f385fcfb2";
2017-11-25 23:49:11 +00:00
})
2017-11-03 14:38:33 +00:00
];
postPatch = ''
substituteInPlace configure --replace 'enchant >=' 'enchant-2 >='
'';
2018-03-29 09:25:32 +01:00
nativeBuildInputs = [ pkgconfig wrapGAppsHook ];
2018-03-29 09:25:32 +01:00
buildInputs = [
gtk3 librsvg bzip2 fribidi libpng popt
2019-02-13 21:47:50 +00:00
libgsf enchant wv libjpeg perl boost libxslt goffice gnome3.adwaita-icon-theme
2018-03-29 09:25:32 +01:00
];
2014-06-23 11:54:46 +01:00
meta = with stdenv.lib; {
description = "Word processing program, similar to Microsoft Word";
homepage = "https://www.abisource.com/";
2014-06-23 11:54:46 +01:00
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ pSub ylwghst sna ];
};
}