nixpkgs/pkgs/applications/office/scribus/unstable.nix

47 lines
1.6 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, fetchpatch, mkDerivation, pkgconfig, cmake, qtbase, cairo, pixman,
2018-10-05 12:03:11 +00:00
boost, cups, fontconfig, freetype, hunspell, libjpeg, libtiff, libxml2, lcms2,
2019-09-17 17:28:21 +00:00
podofo, poppler, poppler_data, python2, qtimageformats, qttools, harfbuzzFull }:
2018-10-05 12:03:11 +00:00
let
pythonEnv = python2.withPackages(ps: [ps.tkinter ps.pillow]);
in
mkDerivation rec {
pname = "scribus";
version = "1.5.5";
2018-10-05 12:03:11 +00:00
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-devel/${pname}-${version}.tar.xz";
sha256 = "eQiyGmzoQyafWM7fX495GJMlfmIBzOX73ccNrKL+P3E=";
2018-10-05 12:03:11 +00:00
};
patches = [
# fix build with Poppler 0.82
(fetchpatch {
url = "https://github.com/scribusproject/scribus/commit/6db15ec1af791377b28981601f8c296006de3c6f.patch";
sha256 = "1y6g3avmsmiyaj8xry1syaz8sfznsavh6l2rp13pj2bwsxfcf939";
})
# fix build with Poppler 0.83
(fetchpatch {
url = "https://github.com/scribusproject/scribus/commit/b51c2bab4d57d685f96d427d6816bdd4ecfb4674.patch";
sha256 = "031yy9ylzksczfnpcc4glfccz025sn47zg6fqqzjnqqrc16bgdlx";
})
];
2018-10-05 12:03:11 +00:00
enableParallelBuilding = true;
nativeBuildInputs = [ pkgconfig cmake ];
2018-10-05 12:03:11 +00:00
buildInputs = [
qtbase cairo pixman boost cups fontconfig
2018-10-05 12:03:11 +00:00
freetype hunspell libjpeg libtiff libxml2 lcms2 podofo poppler
2019-09-17 17:28:21 +00:00
poppler_data pythonEnv qtimageformats qttools harfbuzzFull
2018-10-05 12:03:11 +00:00
];
meta = {
maintainers = [ stdenv.lib.maintainers.erictapen ];
platforms = stdenv.lib.platforms.linux;
description = "Desktop Publishing (DTP) and Layout program for Linux";
homepage = http://www.scribus.net;
license = stdenv.lib.licenses.gpl2;
};
}