diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/office/scribus')
-rw-r--r-- | nixpkgs/pkgs/applications/office/scribus/default.nix | 46 | ||||
-rw-r--r-- | nixpkgs/pkgs/applications/office/scribus/unstable.nix | 39 |
2 files changed, 85 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/office/scribus/default.nix b/nixpkgs/pkgs/applications/office/scribus/default.nix new file mode 100644 index 000000000000..434b4e64ee67 --- /dev/null +++ b/nixpkgs/pkgs/applications/office/scribus/default.nix @@ -0,0 +1,46 @@ +{ stdenv, fetchurl, pkgconfig, freetype, lcms, libtiff, libxml2 +, libart_lgpl, qt4, python2, cups, fontconfig, libjpeg +, zlib, libpng, xorg, cairo, podofo, aspell, boost, cmake, imagemagick }: + +let + icon = fetchurl { + url = "https://gist.githubusercontent.com/ejpcmac/a74b762026c9bc4000be624c3d085517/raw/18edc497c5cb6fdeef1c8aede37a0ee68413f9d3/scribus-icon-centered.svg"; + sha256 = "0hq3i7c2l50445an9glhhg47kj26y16svfajc6naqn307ph9vzc3"; + }; + + pythonEnv = python2.withPackages(ps: [ps.tkinter]); +in stdenv.mkDerivation rec { + name = "scribus-1.4.7"; + + src = fetchurl { + url = "mirror://sourceforge/scribus/scribus/${name}.tar.xz"; + sha256 = "1v2ziq3k0yjz35nk5plcbc1jpi53p9v1cq1z3spch9lwlns3bls2"; + }; + + enableParallelBuilding = true; + + buildInputs = with xorg; + [ pkgconfig cmake freetype lcms libtiff libxml2 libart_lgpl qt4 + pythonEnv cups fontconfig + libjpeg zlib libpng podofo aspell cairo + boost # for internal 2geom library + libXaw libXext libX11 libXtst libXi libXinerama + libpthreadstubs libXau libXdmcp + imagemagick # To build the icon + ]; + + postInstall = '' + for i in 16 24 48 64 96 128 256 512; do + mkdir -p $out/share/icons/hicolor/''${i}x''${i}/apps + convert -background none -resize ''${i}x''${i} ${icon} $out/share/icons/hicolor/''${i}x''${i}/apps/scribus.png + done + ''; + + meta = { + maintainers = [ stdenv.lib.maintainers.marcweber ]; + platforms = stdenv.lib.platforms.linux; + description = "Desktop Publishing (DTP) and Layout program for Linux"; + homepage = https://www.scribus.net; + license = stdenv.lib.licenses.gpl2; + }; +} diff --git a/nixpkgs/pkgs/applications/office/scribus/unstable.nix b/nixpkgs/pkgs/applications/office/scribus/unstable.nix new file mode 100644 index 000000000000..32758b462f75 --- /dev/null +++ b/nixpkgs/pkgs/applications/office/scribus/unstable.nix @@ -0,0 +1,39 @@ +{ stdenv, fetchsvn, makeWrapper, pkgconfig, cmake, qtbase, cairo, pixman, +boost, cups, fontconfig, freetype, hunspell, libjpeg, libtiff, libxml2, lcms2, +podofo, poppler, poppler_data, python2, harfbuzz, qtimageformats, qttools }: + +let + pythonEnv = python2.withPackages(ps: [ps.tkinter ps.pillow]); + revision = "22806"; +in +stdenv.mkDerivation rec { + name = "scribus-unstable-${version}"; + version = "2019-01-16"; + + src = fetchsvn { + url = "svn://scribus.net/trunk/Scribus"; + rev = revision; + sha256 = "16xpsbp6kca78jf48n6zdmyjras38xr11paan839hgy4ik83ncn0"; + }; + + enableParallelBuilding = true; + + buildInputs = [ + makeWrapper pkgconfig cmake qtbase cairo pixman boost cups fontconfig + freetype hunspell libjpeg libtiff libxml2 lcms2 podofo poppler + poppler_data pythonEnv harfbuzz qtimageformats qttools + ]; + + postFixup = '' + wrapProgram $out/bin/scribus \ + --prefix QT_PLUGIN_PATH : "${qtbase}/${qtbase.qtPluginPrefix}" + ''; + + 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; + }; +} |