1{
2 lib,
3 stdenv,
4 fetchurl,
5 pkg-config,
6 gettext,
7 perl,
8 itstool,
9 isocodes,
10 enchant,
11 libxml2,
12 python3,
13 gtksourceview4,
14 libpeas,
15 mate-desktop,
16 wrapGAppsHook3,
17 mateUpdateScript,
18}:
19
20stdenv.mkDerivation rec {
21 pname = "pluma";
22 version = "1.28.0";
23
24 src = fetchurl {
25 url = "https://pub.mate-desktop.org/releases/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
26 sha256 = "qorflYk0UJOlDjCyft5KeKJCHRcnwn9GX8h8Q1llodQ=";
27 };
28
29 nativeBuildInputs = [
30 gettext
31 isocodes
32 itstool
33 perl
34 pkg-config
35 python3.pkgs.wrapPython
36 wrapGAppsHook3
37 ];
38
39 buildInputs = [
40 enchant
41 gtksourceview4
42 libpeas
43 libxml2
44 mate-desktop
45 python3
46 ];
47
48 enableParallelBuilding = true;
49
50 pythonPath = with python3.pkgs; [
51 pycairo
52 six
53 ];
54
55 postFixup = ''
56 buildPythonPath "$pythonPath"
57 patchPythonScript $out/lib/pluma/plugins/snippets/Snippet.py
58 '';
59
60 passthru.updateScript = mateUpdateScript { inherit pname; };
61
62 meta = with lib; {
63 description = "Powerful text editor for the MATE desktop";
64 mainProgram = "pluma";
65 homepage = "https://mate-desktop.org";
66 license = with licenses; [
67 gpl2Plus
68 lgpl2Plus
69 fdl11Plus
70 ];
71 platforms = platforms.unix;
72 teams = [ teams.mate ];
73 };
74}