2014-09-26 20:26:32 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gtk3, libglade, libgnomecanvas, fribidi
|
|
|
|
, libpng, popt, libgsf, enchant, wv, librsvg, bzip2, libjpeg, perl
|
2015-06-11 19:06:35 +00:00
|
|
|
, boost, libxslt, goffice, makeWrapper, iconTheme
|
2006-07-08 12:44:00 +00:00
|
|
|
}:
|
|
|
|
|
2014-09-26 20:26:32 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "abiword-${version}";
|
2017-11-03 14:38:33 +00:00
|
|
|
version = "3.0.2";
|
2012-12-12 05:02:05 +00:00
|
|
|
|
2006-07-08 12:44:00 +00:00
|
|
|
src = fetchurl {
|
2017-11-03 14:38:33 +00:00
|
|
|
url = "http://www.abisource.com/downloads/abiword/${version}/source/${name}.tar.gz";
|
|
|
|
sha256 = "08imry821g81apdwym3gcs4nss0l9j5blqk31j5rv602zmcd9gxg";
|
2006-07-08 12:44:00 +00:00
|
|
|
};
|
|
|
|
|
2012-12-12 05:02:50 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2017-11-03 14:38:33 +00:00
|
|
|
patches = [
|
2017-11-25 23:49:11 +00:00
|
|
|
# https://bugzilla.abisource.com/show_bug.cgi?id=13791
|
|
|
|
(fetchurl {
|
|
|
|
url = https://bugzilla.abisource.com/attachment.cgi?id=5860;
|
|
|
|
sha256 = "02p8kz02xm1197zcpzjs010mna9hxsbq5lwgxr8b7qhh9yxja7al";
|
|
|
|
})
|
2017-11-03 14:38:33 +00:00
|
|
|
];
|
|
|
|
|
2010-07-28 15:35:01 +00:00
|
|
|
buildInputs =
|
2014-09-26 20:26:32 +00:00
|
|
|
[ pkgconfig gtk3 libglade librsvg bzip2 libgnomecanvas fribidi libpng popt
|
2015-06-11 19:06:35 +00:00
|
|
|
libgsf enchant wv libjpeg perl boost libxslt goffice makeWrapper iconTheme
|
2010-07-28 15:35:01 +00:00
|
|
|
];
|
2013-10-05 14:22:46 +00:00
|
|
|
|
2015-06-11 19:06:35 +00:00
|
|
|
postFixup = ''
|
|
|
|
wrapProgram "$out/bin/abiword" \
|
|
|
|
--prefix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"
|
|
|
|
'';
|
|
|
|
|
2014-06-23 10:54:46 +00:00
|
|
|
meta = with stdenv.lib; {
|
2014-06-23 10:44:21 +00:00
|
|
|
description = "Word processing program, similar to Microsoft Word";
|
2014-06-23 10:54:46 +00:00
|
|
|
homepage = http://www.abisource.com/;
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2017-11-03 14:38:33 +00:00
|
|
|
maintainers = with maintainers; [ pSub ylwghst ];
|
2013-10-05 14:22:46 +00:00
|
|
|
};
|
2006-07-08 12:44:00 +00:00
|
|
|
}
|