@@ -0,0 +1,39 @@
1+{ stdenv, fetchsvn, makeWrapper, pkgconfig, cmake, qtbase, cairo, pixman,
2+boost, cups, fontconfig, freetype, hunspell, libjpeg, libtiff, libxml2, lcms2,
3+podofo, poppler, poppler_data, python2, harfbuzz, qtimageformats, qttools }:
4+
5+let
6+ pythonEnv = python2.withPackages(ps: [ps.tkinter ps.pillow]);
7+ revision = "22730";
8+in
9+stdenv.mkDerivation rec {
10+ name = "scribus-unstable-${version}";
11+ version = "2018-10-13";
12+
13+ src = fetchsvn {
14+ url = "svn://scribus.net/trunk/Scribus";
15+ rev = revision;
16+ sha256 = "1nlg4qva0fach8fi07r1pakjjlijishpwzlgpnxyaz7r31yjaw63";
17+ };
18+
19+ enableParallelBuilding = true;
20+
21+ buildInputs = [
22+ makeWrapper pkgconfig cmake qtbase cairo pixman boost cups fontconfig
23+ freetype hunspell libjpeg libtiff libxml2 lcms2 podofo poppler
24+ poppler_data pythonEnv harfbuzz qtimageformats qttools
25+ ];
26+
27+ postFixup = ''
28+ wrapProgram $out/bin/scribus \
29+ --prefix QT_PLUGIN_PATH : "${qtbase}/${qtbase.qtPluginPrefix}"
30+ '';
31+
32+ meta = {
33+ maintainers = [ stdenv.lib.maintainers.erictapen ];
34+ platforms = stdenv.lib.platforms.linux;
35+ description = "Desktop Publishing (DTP) and Layout program for Linux";
36+ homepage = http://www.scribus.net;
37+ license = stdenv.lib.licenses.gpl2;
38+ };
39+}