git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #57359 from dtzWill/update/scribus-1.4.8

scribus: 1.4.7 -> 1.4.8, dep fixups

commit2b377504e784d5b5ea27d99fb8c2fb8a108bec6a authorRyan Mulligan <ryan@ryantm.com> dateTue 9 Apr 2019, 20:18 (8 years ago) parentacdba71e3e0f79
1 file changed+15−7
pkgs/applications/office/scribus/default.nix+15−7
pkgs/applications/office/scribus/default.nix+15−7
@@ -1,6 +1,6 @@
11{ stdenv, fetchurl, pkgconfig, freetype, lcms, libtiff, libxml2
22, libart_lgpl, qt4, python2, cups, fontconfig, libjpeg
3−, zlib, libpng, xorg, cairo, podofo, aspell, boost, cmake, imagemagick }:
3+, zlib, libpng, xorg, cairo, podofo, hunspell, boost, cmake, imagemagick, ghostscript }:
44
55let
66 icon = fetchurl {
@@ -8,27 +8,35 @@ let
88 sha256 = "0hq3i7c2l50445an9glhhg47kj26y16svfajc6naqn307ph9vzc3";
99 };
1010
11− pythonEnv = python2.withPackages(ps: [ps.tkinter]);
11+ pythonEnv = python2.withPackages(ps: [ps.tkinter ps.pillow]);
1212in stdenv.mkDerivation rec {
13− name = "scribus-1.4.7";
13+ pname = "scribus";
14+ version = "1.4.8";
1415
1516 src = fetchurl {
16− url = "mirror://sourceforge/scribus/scribus/${name}.tar.xz";
17− sha256 = "1v2ziq3k0yjz35nk5plcbc1jpi53p9v1cq1z3spch9lwlns3bls2";
17+ url = "mirror://sourceforge/${pname}/${pname}/${pname}-${version}.tar.xz";
18+ sha256 = "0bq433myw6h1siqlsakxv6ghb002rp3mfz5k12bg68s0k6skn992";
1819 };
1920
2021 enableParallelBuilding = true;
2122
23+ nativeBuildInputs = [ pkgconfig cmake ];
2224 buildInputs = with xorg;
23− [ pkgconfig cmake freetype lcms libtiff libxml2 libart_lgpl qt4
25+ [ freetype lcms libtiff libxml2 libart_lgpl qt4
2426 pythonEnv cups fontconfig
25− libjpeg zlib libpng podofo aspell cairo
27+ libjpeg zlib libpng podofo hunspell cairo
2628 boost # for internal 2geom library
2729 libXaw libXext libX11 libXtst libXi libXinerama
2830 libpthreadstubs libXau libXdmcp
2931 imagemagick # To build the icon
3032 ];
3133
34+ postPatch = ''
35+ substituteInPlace scribus/util_ghostscript.cpp \
36+ --replace 'QString gsName("gs");' \
37+ 'QString gsName("${ghostscript}/bin/gs");'
38+ '';
39+
3240 postInstall = ''
3341 for i in 16 24 48 64 96 128 256 512; do
3442 mkdir -p $out/share/icons/hicolor/''${i}x''${i}/apps