1/*
2
3# New packages
4
5READ THIS FIRST
6
7This module is for official packages in KDE Frameworks 5. All available packages
8are listed in `./srcs.nix`, although a few are not yet packaged in Nixpkgs (see
9below).
10
11IF YOUR PACKAGE IS NOT LISTED IN `./srcs.nix`, IT DOES NOT GO HERE.
12
13Many of the packages released upstream are not yet built in Nixpkgs due to lack
14of demand. To add a Nixpkgs build for an upstream package, copy one of the
15existing packages here and modify it as necessary.
16
17# Updates
18
191. Update the URL in `./fetch.sh`.
202. Run `./maintainers/scripts/fetch-kde-qt.sh pkgs/development/libraries/kde-frameworks`
21 from the top of the Nixpkgs tree.
223. Use `nox-review wip` to check that everything builds.
234. Commit the changes and open a pull request.
24
25*/
26
27{ libsForQt5, lib, fetchurl }:
28
29let
30 maintainers = with lib.maintainers; [ ttuegel nyanloutre ];
31 license = with lib.licenses; [
32 lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12Plus
33 ];
34
35 srcs = import ./srcs.nix {
36 inherit fetchurl;
37 mirror = "mirror://kde";
38 };
39
40 mkDerivation = libsForQt5.callPackage ({ stdenv, mkDerivation ? stdenv.mkDerivation }: mkDerivation) {};
41
42 packages = self: with self;
43 # SUPPORT
44 let
45
46 propagate = out:
47 let setupHook = { writeScript }:
48 writeScript "setup-hook" ''
49 if [ "''${hookName:-}" != postHook ]; then
50 postHooks+=("source @dev@/nix-support/setup-hook")
51 else
52 # Propagate $dev so that this setup hook is propagated
53 # But only if there is a separate $dev output
54 if [ "''${outputDev:?}" != out ]; then
55 propagatedBuildInputs="''${propagatedBuildInputs-} @dev@"
56 fi
57 fi
58 '';
59 in callPackage setupHook {};
60
61 propagateBin = propagate "bin";
62
63 callPackage = self.newScope {
64
65 inherit propagate propagateBin;
66
67 mkDerivation = args:
68 let
69
70 inherit (args) pname;
71 inherit (srcs.${pname}) src version;
72
73 outputs = args.outputs or [ "bin" "dev" "out" ];
74 hasSeparateDev = lib.elem "dev" outputs;
75
76 defaultSetupHook = if hasSeparateDev then propagateBin else null;
77 setupHook = args.setupHook or defaultSetupHook;
78
79 meta =
80 let meta = args.meta or {}; in
81 meta // {
82 homepage = meta.homepage or "https://kde.org";
83 license = meta.license or license;
84 maintainers = (meta.maintainers or []) ++ maintainers;
85 platforms = meta.platforms or lib.platforms.all;
86 };
87
88 in mkDerivation (args // {
89 inherit pname meta outputs setupHook src version;
90 });
91
92 };
93
94 in {
95 extra-cmake-modules = callPackage ./extra-cmake-modules {};
96
97 # TIER 1
98 attica = callPackage ./attica.nix {};
99 bluez-qt = callPackage ./bluez-qt.nix {};
100 breeze-icons = callPackage ./breeze-icons.nix {};
101 kapidox = callPackage ./kapidox.nix {};
102 karchive = callPackage ./karchive.nix {};
103 kcalendarcore = callPackage ./kcalendarcore.nix {};
104 kcodecs = callPackage ./kcodecs.nix {};
105 kconfig = callPackage ./kconfig.nix {};
106 kcoreaddons = callPackage ./kcoreaddons.nix {};
107 kdbusaddons = callPackage ./kdbusaddons.nix {};
108 kdnssd = callPackage ./kdnssd.nix {};
109 kguiaddons = callPackage ./kguiaddons.nix {};
110 kholidays = callPackage ./kholidays.nix {};
111 ki18n = callPackage ./ki18n.nix {};
112 kidletime = callPackage ./kidletime.nix {};
113 kirigami2 = callPackage ./kirigami2.nix {};
114 kitemmodels = callPackage ./kitemmodels.nix {};
115 kitemviews = callPackage ./kitemviews.nix {};
116 kplotting = callPackage ./kplotting.nix {};
117 kquickcharts = callPackage ./kquickcharts.nix {};
118 kwayland = callPackage ./kwayland.nix {};
119 kwidgetsaddons = callPackage ./kwidgetsaddons.nix {};
120 kwindowsystem = callPackage ./kwindowsystem {};
121 modemmanager-qt = callPackage ./modemmanager-qt.nix {};
122 networkmanager-qt = callPackage ./networkmanager-qt.nix {};
123 oxygen-icons = callPackage ./oxygen-icons.nix {};
124 oxygen-icons5 = oxygen-icons;
125 prison = callPackage ./prison.nix {};
126 qqc2-desktop-style = callPackage ./qqc2-desktop-style.nix {};
127 solid = callPackage ./solid {};
128 sonnet = callPackage ./sonnet.nix {};
129 syntax-highlighting = callPackage ./syntax-highlighting.nix {};
130 threadweaver = callPackage ./threadweaver.nix {};
131
132 # TIER 2
133 kactivities = callPackage ./kactivities.nix {};
134 kauth = callPackage ./kauth {};
135 kcompletion = callPackage ./kcompletion.nix {};
136 kcontacts = callPackage ./kcontacts.nix {};
137 kcrash = callPackage ./kcrash.nix {};
138 kdoctools = callPackage ./kdoctools {};
139 kfilemetadata = callPackage ./kfilemetadata {};
140 kimageformats = callPackage ./kimageformats.nix {};
141 kjobwidgets = callPackage ./kjobwidgets.nix {};
142 knotifications = callPackage ./knotifications.nix {};
143 kpackage = callPackage ./kpackage {};
144 kpeople = callPackage ./kpeople.nix {};
145 kpty = callPackage ./kpty.nix {};
146 kunitconversion = callPackage ./kunitconversion.nix {};
147 syndication = callPackage ./syndication.nix {};
148
149 # TIER 3
150 baloo = callPackage ./baloo.nix {};
151 kactivities-stats = callPackage ./kactivities-stats.nix {};
152 kbookmarks = callPackage ./kbookmarks.nix {};
153 kcmutils = callPackage ./kcmutils.nix {};
154 kconfigwidgets = callPackage ./kconfigwidgets.nix {};
155 kdav = callPackage ./kdav.nix {};
156 kdeclarative = callPackage ./kdeclarative.nix {};
157 kded = callPackage ./kded.nix {};
158 kdesu = callPackage ./kdesu {};
159 kemoticons = callPackage ./kemoticons.nix {};
160 kglobalaccel = callPackage ./kglobalaccel.nix {};
161 kiconthemes = callPackage ./kiconthemes {};
162 kinit = callPackage ./kinit {};
163 kio = callPackage ./kio {};
164 knewstuff = callPackage ./knewstuff {};
165 knotifyconfig = callPackage ./knotifyconfig.nix {};
166 kparts = callPackage ./kparts.nix {};
167 krunner = callPackage ./krunner.nix {};
168 kservice = callPackage ./kservice {};
169 ktexteditor = callPackage ./ktexteditor.nix {};
170 ktextwidgets = callPackage ./ktextwidgets.nix {};
171 kwallet = callPackage ./kwallet.nix {};
172 kxmlgui = callPackage ./kxmlgui.nix {};
173 plasma-framework = callPackage ./plasma-framework.nix {};
174 kpurpose = callPackage ./purpose.nix {};
175
176 # TIER 4
177 frameworkintegration = callPackage ./frameworkintegration.nix {};
178
179 # PORTING AIDS
180 kdelibs4support = callPackage ./kdelibs4support {};
181 kdesignerplugin = callPackage ./kdesignerplugin.nix {};
182 khtml = callPackage ./khtml.nix {};
183 kjs = callPackage ./kjs.nix {};
184 kjsembed = callPackage ./kjsembed.nix {};
185 kmediaplayer = callPackage ./kmediaplayer.nix {};
186 kross = callPackage ./kross.nix {};
187 kxmlrpcclient = callPackage ./kxmlrpcclient.nix {};
188
189 };
190
191in lib.makeScope libsForQt5.newScope packages