biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / office / scribus / default.nix
blobf95ac14c67ab565a7d4197545ec77884c264c94e
1 { boost
2 , cairo
3 , cmake
4 , cups
5 , fetchurl
6 , fontconfig
7 , freetype
8 , harfbuzzFull
9 , hunspell
10 , lcms2
11 , libjpeg
12 , libtiff
13 , libxml2
14 , pixman
15 , pkg-config
16 , podofo
17 , poppler
18 , poppler_data
19 , python3
20 , lib
21 , stdenv
22 , qt5
25 let
26   pythonEnv = python3.withPackages (
27     ps: [
28       ps.pillow
29       ps.tkinter
30     ]
31   );
33 stdenv.mkDerivation (finalAttrs: {
34   pname = "scribus";
36   version = "1.6.2";
38   src = fetchurl {
39     url = "mirror://sourceforge/scribus/scribus-devel/scribus-${finalAttrs.version}.tar.xz";
40     hash = "sha256-fv+bH0fjcuVrs2nx2+GP5JEBeJtea8/beJDgNGtkE4M=";
41   };
43   nativeBuildInputs = [
44     cmake
45     pkg-config
46     qt5.wrapQtAppsHook
47   ];
49   buildInputs = [
50     boost
51     cairo
52     cups
53     fontconfig
54     freetype
55     harfbuzzFull
56     hunspell
57     lcms2
58     libjpeg
59     libtiff
60     libxml2
61     pixman
62     podofo
63     poppler
64     poppler_data
65     pythonEnv
66     qt5.qtbase
67     qt5.qtimageformats
68     qt5.qttools
69   ];
71   meta = with lib; {
72     maintainers = with maintainers; [
73       arthsmn
74     ];
75     description = "Desktop Publishing (DTP) and Layout program";
76     mainProgram = "scribus";
77     homepage = "https://www.scribus.net";
78     # There are a lot of licenses...
79     # https://github.com/scribusproject/scribus/blob/20508d69ca4fc7030477db8dee79fd1e012b52d2/COPYING#L15-L19
80     license = with licenses; [
81       bsd3
82       gpl2Plus
83       mit
84       publicDomain
85     ];
86     broken = stdenv.hostPlatform.isDarwin;
87   };