git.iko.soy/typeable/nixpkgs
on master help sign in
autonix: JSON manifest format
commit8862d8d9c98cf4d8ee66f8bf94f51294af74090d authorThomas Tuegel <ttuegel@gmail.com> dateThu 18 Jun 2015, 14:25 (11 years ago) parent0aa8e64
6 files changed+518−526
pkgs/applications/kde-apps-15.04/default.nix+317−193 pkgs/applications/kde-apps-15.04/setup-hook.sh+11 pkgs/build-support/autonix/default.nix+94−229 pkgs/desktops/plasma-5.3/default.nix+36−40 pkgs/development/libraries/kde-frameworks-5.10/default.nix+57−59 pkgs/top-level/all-packages.nix+3−5
pkgs/applications/kde-apps-15.04/default.nix+317−193
@@ -12,23 +12,23 @@
1212# make a copy of this directory first. After copying, be sure to delete ./tmp
1313# if it exists. Then follow the minor update instructions.
1414
15−{ autonix, symlinkJoin, kde4, kf5, pkgs, qt4, qt5, stdenv, newScope, debug ? false }:
15+{ pkgs, newScope, kf5 ? null, plasma5 ? null, qt5 ? null, debug ? false }:
1616
17−with autonix;
17+let inherit (pkgs) autonix kde4 stdenv symlinkJoin; in
1818
19−let inherit (stdenv) lib; in
20−
21−let kf5Orig = kf5; in
19+with autonix; let inherit (stdenv) lib; in
2220
2321let
22+ kf5_ = if kf5 != null then kf5 else pkgs.kf510;
23+ plasma5_ = if plasma5 != null then plasma5 else pkgs.plasma53;
24+ qt5_ = if qt5 != null then qt5 else pkgs.qt54;
25+in
2426
25− kf5 = kf5Orig.override { inherit debug qt5; };
27+let
2628
27− kdePackage = pkg:
28− (kf5.kdePackage pkg).override {
29− inherit (stdenv) mkDerivation;
30− inherit scope;
31− };
29+ kf5 = kf5_.override { inherit debug qt5; };
30+ plasma5 = plasma5_.override { inherit debug kf5 qt5; };
31+ qt5 = qt5_;
3232
3333 kdeOrL10nPackage = name: pkg:
3434 assert (builtins.isAttrs pkg);
@@ -124,53 +124,58 @@ let
124124 (lib.mapAttrs mirrorUrl)
125125 ];
126126
127− overrideDerivation = pkg: f:
128− let mkDerivation = super: drv: super.mkDerivation (drv // f drv);
129− in pkg.override (super: super // { mkDerivation = mkDerivation super; });
127+ kde4Package = pkg: overrideScope pkg (with kde4; {
128+ inherit akonadi baloo kactivities libkdegames libkmahjongg;
129+ kde4 = self.kdelibs;
130+ });
130131
131132 scope =
133+ # KDE Frameworks 5
134+ kf5 //
132135 # packages in this collection
133136 self //
134137 {
138+ kf5baloo = plasma5.baloo;
139+ kf5kdcraw = self.libkdcraw;
135140 kf5kdegames = self.libkdegames;
141+ kf5kipi = self.libkipi;
136142 libkonq = self.kde-baseapps;
137143 } //
138− # packages from KDE Frameworks 5
139− kf5.scope //
140144 # packages requiring same Qt 5
141145 (with pkgs; {
142146 accountsqt5 = accounts-qt.override { inherit qt5; };
143147 dbusmenuqt = libdbusmenu_qt;
144148 grantlee5 = grantlee5.override { inherit qt5; };
145149 mlt = pkgs.mlt-qt5.override { inherit qt5; };
150+ phonon4qt5 = pkgs.phonon_qt5.override { inherit qt5; };
146151 qca-qt5 = qca-qt5.override { inherit qt5; };
152+ qt5script = qt5.script;
153+ qt5x11extras = qt5.x11extras;
147154 signonqt5 = signon.override { inherit qt5; };
148155 telepathyqt5 = telepathy_qt5.override { inherit qt5; };
149156 }) //
150− # packages from KDE 4
151− (with kde4; {
152− inherit akonadi baloo kactivities libkdegames libkmahjongg;
153− kde4 = self.kdelibs;
154− }) //
155157 # packages from nixpkgs
156158 (with pkgs; {
157− inherit acl attr automoc4 avahi bison cdparanoia cfitsio cups
159+ inherit acl attr automoc4 avahi bison cdparanoia cfitsio cmake cups
158160 djvulibre docbook_xml_dtd_42 docbook_xsl enchant eigen2
159161 exiv2 fam ffmpeg flac flex freetype gmp gettext gpgme
160162 grantlee gsl hunspell ilmbase intltool jasper lcms2
161− libgcrypt libraw libssh libspectre libvncserver libical
162− networkmanager openal opencv openexr phonon pkgconfig
163− polkit_qt4 prison python qca2 qimageblitz qjson qt4
164− samba saneBackends soprano
165− speechd strigi taglib udev xplanet xscreensaver xz;
163+ libaccounts-glib libgcrypt libotr libraw libssh libspectre
164+ libvncserver libical networkmanager openal opencv
165+ openexr perl phonon pkgconfig polkit_qt4 prison python qca2
166+ qimageblitz qjson qt4 samba saneBackends soprano speechd
167+ strigi taglib udev xlibs xplanet xscreensaver xz;
166168 alsa = alsaLib;
167169 assuan = libassuan;
168170 boost = boost156;
169171 canberra = libcanberra;
172+ eigen3 = eigen;
170173 epub = ebook_tools;
174+ gif = giflib;
171175 gphoto2 = libgphoto2;
172176 hupnp = herqq;
173177 indi = indilib;
178+ jpeg = libjpeg;
174179 ldap = openldap;
175180 libattica = attica;
176181 musicbrainz3 = libmusicbrainz;
@@ -180,6 +185,7 @@ let
180185 qalculate = libqalculate;
181186 sasl2 = cyrus_sasl;
182187 shareddesktopontologies = shared_desktop_ontologies;
188+ sharedmimeinfo = shared_mime_info;
183189 sndfile = libsndfile;
184190 tiff = libtiff;
185191 telepathyqt4 = telepathy_qt;
@@ -189,212 +195,330 @@ let
189195 });
190196
191197 self =
192− (builtins.removeAttrs super [ "artikulate" # build failure; wrong boost?
198+ (builtins.removeAttrs super [
199+ "artikulate" # build failure; wrong boost?
193200 "kde-dev-scripts" "kde-dev-utils" # docbook errors
194201 "kdewebdev" # unknown build failure
202+ "kde-l10n-sr" # missing CMake command
195203 ]) // {
196− inherit kdePackage qt5 scope;
204+ audiocd-kio = kde4Package super.audiocd-kio;
197205
198− ark = overrideDerivation super.ark (drv: {
199− buildInputs = (drv.buildInputs or []) ++ [ pkgs.makeWrapper ];
206+ amor = kde4Package super.amor;
207+
208+ ark = extendDerivation (kde4Package super.ark) {
209+ buildInputs = [ pkgs.makeWrapper ];
200210 # runtime dependency
201− postInstall = (drv.postInstall or "") + ''
211+ postInstall = ''
202212 wrapProgram $out/bin/ark --prefix PATH : "${pkgs.unzipNLS}/bin"
203213 '';
204− });
214+ };
215+
216+ cervisia = kde4Package super.cervisia;
217+
218+ dolphin-plugins = kde4Package super.dolphin-plugins;
205219
206− ffmpegthumbs = overrideDerivation super.ffmpegthumbs (drv: {
207− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
208− });
220+ dragon = kde4Package super.dragon;
209221
210− kaccounts-providers = overrideDerivation super.kaccounts-providers (drv: {
211− buildInputs = (drv.buildInputs or []) ++ [ pkgs.libaccounts-glib ];
222+ ffmpegthumbs = extendDerivation (kde4Package super.ffmpegthumbs) {
223+ nativeBuildInputs = [ scope.pkgconfig ];
224+ };
225+
226+ juk = kde4Package super.juk;
227+
228+ jovie = kde4Package super.jovie;
229+
230+ kaccessible = kde4Package super.kaccessible;
231+
232+ kaccounts-providers = extendDerivation super.kaccounts-providers {
233+ buildInputs = [ pkgs.libaccounts-glib ];
212234 # hard-coded install path
213− preConfigure = (drv.preConfigure or "") + ''
235+ preConfigure = ''
214236 substituteInPlace webkit-options/CMakeLists.txt \
215237 --replace "/etc/signon-ui/webkit-options.d/" \
216238 "$out/etc/signon-ui/webkit-options.d/"
217239 '';
218− });
219−
220− kalzium = overrideDerivation super.kalzium (drv: {
221− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
222− });
223−
224− kate = overrideDerivation super.kate (drv: {
225− buildInputs =
226− (drv.buildInputs or [])
227− ++ (with kf5; [ kconfig kguiaddons kiconthemes ki18n kinit kjobwidgets
228− kio kparts ktexteditor kwindowsystem kxmlgui ]);
229− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ ([ kf5.kdoctools ]);
230− });
231−
232− /*
233− kde-baseapps = overrideDerivation super.kde-baseapps (drv: {
234− buildInputs = (drv.buildInputs or []) ++ [ scope.qt4 ];
235− });
236− */
237−
238− kde-runtime = overrideDerivation super.kde-runtime (drv: {
239− buildInputs = (drv.buildInputs or []) ++ [ scope.canberra ];
240− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
240+ };
241+
242+ kajongg = kde4Package super.kajongg;
243+
244+ kalzium = extendDerivation (kde4Package super.kalzium) {
245+ nativeBuildInputs = [ scope.pkgconfig ];
246+ };
247+
248+ kamera = kde4Package super.kamera;
249+
250+ kate = extendDerivation super.kate {
251+ buildInputs = with scope; [
252+ kconfig kguiaddons kiconthemes ki18n kinit kjobwidgets kio
253+ kparts ktexteditor kwindowsystem kxmlgui
254+ ];
255+ nativeBuildInputs = [ scope.kdoctools ];
256+ };
257+
258+ kcachegrind = kde4Package super.kcachegrind;
259+
260+ kcolorchooser = kde4Package super.kcolorchooser;
261+
262+ kde-base-artwork = kde4Package super.kde-base-artwork;
263+
264+ kde-baseapps = kde4Package super.kde-baseapps;
265+
266+ kde-runtime = extendDerivation (kde4Package super.kde-runtime) {
267+ buildInputs = [ scope.canberra ];
268+ nativeBuildInputs = [ scope.pkgconfig ];
241269 # cmake does not detect path to `ilmbase`
242− NIX_CFLAGS_COMPILE =
243− (drv.NIX_CFLAGS_COMPILE or "") + " -I${scope.ilmbase}/include/OpenEXR";
270+ NIX_CFLAGS_COMPILE = "-I${scope.ilmbase}/include/OpenEXR";
244271 # some components of this package have been replaced in other packages
245272 meta = { priority = 10; };
246− });
273+ };
274+
275+ kde-wallpapers = kde4Package super.kde-wallpapers;
247276
248− kde-workspace = overrideDerivation super.kde-workspace (drv: {
249− buildInputs =
250− (drv.buildInputs or []) ++
251− (with pkgs.xlibs; [
277+ kde-workspace = extendDerivation (kde4Package super.kde-workspace) {
278+ buildInputs = with scope.xlibs; [
252279 libxkbfile libXcomposite xcbutilimage xcbutilkeysyms xcbutilrenderutil
253− ]);
254− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
280+ ];
281+ nativeBuildInputs = [ scope.pkgconfig ];
255282 # some components of this package have been replaced in other packages
256283 meta = { priority = 10; };
257− });
284+ };
258285
259− kdelibs = overrideDerivation super.kdelibs (drv: {
260− buildInputs =
261− (drv.buildInputs or []) ++ (with scope; [ attr polkit_qt4 xsltproc xz ]);
286+ kdeartwork = kde4Package super.kdeartwork;
262287
263− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
288+ kdegraphics-mobipocket = kde4Package super.kdegraphics-mobipocket;
264289
265− # cmake does not detect path to `ilmbase`
266− NIX_CFLAGS_COMPILE =
267− (drv.NIX_CFLAGS_COMPILE or "") + " -I${scope.ilmbase}/include/OpenEXR";
290+ kdegraphics-strigi-analyzer = kde4Package super.kdegraphics-strigi-analyzer;
291+
292+ kdegraphics-thumbnailers = kde4Package super.kdegraphics-thumbnailers;
268293
269− propagatedBuildInputs =
270− (drv.propagatedBuildInputs or [])
271− ++ (with scope; [ qt4 soprano phonon strigi ]);
294+ kdelibs = extendDerivation super.kdelibs {
295+ buildInputs = with scope; [ attr polkit_qt4 xsltproc xz ];
296+ propagatedBuildInputs = with scope; [ qt4 soprano phonon strigi ];
297+ nativeBuildInputs = [ scope.pkgconfig ];
298+ propagatedNativeBuildInputs = with scope; [
299+ automoc4 cmake perl sharedmimeinfo
300+ ];
272301
273− propagatedNativeBuildInputs =
274− (drv.propagatedNativeBuildInputs or [])
275− ++ (with scope; [ automoc4 cmake perl sharedmimeinfo ]);
302+ patches = [ ./kdelibs/polkit-install.patch ];
276303
277− patches = (drv.patches or []) ++ [ ./kdelibs/polkit-install.patch ];
304+ # cmake does not detect path to `ilmbase`
305+ NIX_CFLAGS_COMPILE = "-I${scope.ilmbase}/include/OpenEXR";
278306
279− cmakeFlags = (drv.cmakeFlags or []) ++ [
307+ cmakeFlags = [
280308 "-DDOCBOOKXML_CURRENTDTD_DIR=${scope.docbook_xml_dtd_42}/xml/dtd/docbook"
281309 "-DDOCBOOKXSL_DIR=${scope.docbook_xsl}/xml/xsl/docbook"
282310 "-DHUPNP_ENABLED=ON"
283311 "-DWITH_SOLID_UDISKS2=ON"
284312 "-DKDE_DEFAULT_HOME=.kde"
285313 ];
286− });
287−
288− kdenlive = overrideDerivation super.kdenlive (drv: {
289− buildInputs = (drv.buildInputs or []) ++ [ scope.mlt ];
290− });
291−
292− kdepim = overrideDerivation super.kdepim (drv: {
293− buildInputs = (drv.buildInputs or []) ++ (with scope; [ gpgme assuan ]);
294− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
295− });
296−
297− kdepimlibs = overrideDerivation super.kdepimlibs (drv: {
298− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
299− });
300−
301− kdesdk-thumbnailers = overrideDerivation super.kdesdk-thumbnailers (drv: {
302− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.gettext ];
303− });
304−
305− kgpg = overrideDerivation super.kgpg (drv: {
306− buildInputs = (drv.buildInputs or []) ++ [ scope.boost ];
307− });
308−
309− khangman = overrideDerivation super.khangman (drv: {
310− buildInputs = (drv.buildInputs or []) ++ [ kf5.kio ];
311− });
312−
313− kmix = overrideDerivation super.kmix (drv: {
314− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
315− cmakeFlags = (drv.cmakeFlags or []) ++ [ "-DKMIX_KF5_BUILD=ON" ];
316− });
317−
318− kmousetool = overrideDerivation super.kmousetool (drv: {
319− buildInputs = (drv.buildInputs or []) ++ (with pkgs.xlibs; [ libXtst libXt ]);
320− });
321−
322− kremotecontrol = overrideDerivation super.kremotecontrol (drv: {
323− buildInputs = (drv.buildInputs or []) ++ [ pkgs.xlibs.libXtst ];
324− });
325−
326− krfb = overrideDerivation super.krfb (drv: {
327− buildInputs =
328− (drv.buildInputs or [])
329− ++ [ pkgs.xlibs.libXtst scope.ktp-common-internals ];
330− });
331−
332− kstars = overrideDerivation super.kstars (drv: {
333− buildInputs = (drv.buildInputs or []) ++ (with scope; [ kparts cfitsio ]);
334− });
335−
336− ktp-accounts-kcm = overrideDerivation super.ktp-accounts-kcm (drv: {
337− buildInputs = (drv.buildInputs or []) ++ [ pkgs.libaccounts-glib ];
338− });
339−
340− ktp-common-internals = overrideDerivation super.ktp-common-internals (drv: {
341− buildInputs =
342− (drv.buildInputs or [])
343− ++ (with scope; [ kdelibs4support kparts ])
344− ++ [ pkgs.libotr ]; # needed for ktp-text-ui
345− });
346−
347− ktp-text-ui = overrideDerivation super.ktp-text-ui (drv: {
348− buildInputs = (drv.buildInputs or []) ++ [ scope.kdbusaddons ];
349− });
350−
351− lokalize = overrideDerivation super.lokalize (drv: {
352− buildInputs = (drv.buildInputs or []) ++ [ scope.kdbusaddons ];
353− });
354−
355− libkdcraw = overrideDerivation super.libkdcraw (drv: {
356− buildInputs = (drv.buildInputs or []) ++ (with scope; [ kdelibs libraw ]);
357− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
358− });
359−
360− libkexiv2 = overrideDerivation super.libkexiv2 (drv: {
361− buildInputs = (drv.buildInputs or []) ++ (with scope; [ exiv2 kdelibs ]);
362− });
363−
364− libkface = overrideDerivation super.libkface (drv: {
365− buildInputs = (drv.buildInputs or []) ++ (with scope; [ kdelibs opencv ]);
366− });
367−
368− libkgeomap = overrideDerivation super.libkgeomap (drv: {
314+ };
315+
316+ kdenetwork-filesharing = kde4Package super.kdenetwork-filesharing;
317+
318+ kdenetwork-strigi-analyzers = kde4Package super.kdenetwork-strigi-analyzers;
319+
320+ kdenlive = extendDerivation super.kdenlive { buildInputs = [ scope.mlt ]; };
321+
322+ kdepim = extendDerivation (kde4Package super.kdepim) {
323+ buildInputs = with scope; [ gpgme assuan ];
324+ nativeBuildInputs = [ scope.pkgconfig ];
325+ };
326+
327+ kdepim-runtime = kde4Package super.kdepim-runtime;
328+
329+ kdepimlibs = extendDerivation (kde4Package super.kdepimlibs) {
330+ nativeBuildInputs = [ scope.pkgconfig ];
331+ };
332+
333+ kdesdk-kioslaves = kde4Package super.kdesdk-kioslaves;
334+
335+ kdesdk-strigi-analyzers = kde4Package super.kdesdk-strigi-analyzers;
336+
337+ kdesdk-thumbnailers =
338+ extendDerivation (kde4Package super.kdesdk-thumbnailers) {
339+ nativeBuildInputs = [ scope.gettext ];
340+ };
341+
342+ kdf = kde4Package super.kdf;
343+
344+ kfloppy = kde4Package super.kfloppy;
345+
346+ kgamma = kde4Package super.kgamma;
347+
348+ kget = kde4Package super.kget;
349+
350+ kgoldrunner = kde4Package super.kgoldrunner;
351+
352+ kgpg = extendDerivation (kde4Package super.kgpg) {
353+ buildInputs = [ scope.boost ];
354+ };
355+
356+ khangman = extendDerivation super.khangman { buildInputs = [ scope.kio ]; };
357+
358+ kigo = kde4Package super.kigo;
359+
360+ kiriki = kde4Package super.kiriki;
361+
362+ klickety = kde4Package super.klickety;
363+
364+ kmag = kde4Package super.kmag;
365+
366+ kmahjongg = kde4Package super.kmahjongg;
367+
368+ kmix = extendDerivation super.kmix {
369+ nativeBuildInputs = [ scope.pkgconfig ];
370+ cmakeFlags = [ "-DKMIX_KF5_BUILD=ON" ];
371+ };
372+
373+ kmousetool = extendDerivation (kde4Package super.kmousetool) {
374+ buildInputs = with scope.xlibs; [ libXtst libXt ];
375+ };
376+
377+ kmouth = kde4Package super.kmouth;
378+
379+ knavalbattle = kde4Package super.knavalbattle;
380+
381+ kolf = kde4Package super.kolf;
382+
383+ kolourpaint = kde4Package super.kolourpaint;
384+
385+ konquest = kde4Package super.konquest;
386+
387+ kopete = kde4Package super.kopete;
388+
389+ kppp = kde4Package super.kppp;
390+
391+ kqtquickcharts = kde4Package super.kqtquickcharts;
392+
393+ krdc = kde4Package super.krdc;
394+
395+ kremotecontrol = extendDerivation (kde4Package super.kremotecontrol) {
396+ buildInputs = [ scope.xlibs.libXtst ];
397+ };
398+
399+ kreversi = kde4Package super.kreversi;
400+
401+ krfb = extendDerivation (kde4Package super.krfb) {
402+ buildInputs = with scope; [ xlibs.libXtst ktp-common-internals ];
403+ };
404+
405+ ksaneplugin = kde4Package super.ksaneplugin;
406+
407+ kscd = kde4Package super.kscd;
408+
409+ ksirk = kde4Package super.ksirk;
410+
411+ ksnakeduel = kde4Package super.ksnakeduel;
412+
413+ ksnapshot = kde4Package super.ksnapshot;
414+
415+ kspaceduel = kde4Package super.kspaceduel;
416+
417+ kstars = extendDerivation super.kstars {
418+ buildInputs = with scope; [ kparts cfitsio ];
419+ };
420+
421+ ksudoku = kde4Package super.ksudoku;
422+
423+ ksystemlog = kde4Package super.ksystemlog;
424+
425+ ktp-accounts-kcm = extendDerivation super.ktp-accounts-kcm {
426+ buildInputs = [ scope.libaccounts-glib ];
427+ };
428+
429+ ktp-common-internals = extendDerivation super.ktp-common-internals {
430+ buildInputs = with scope; [ kdelibs4support kparts libotr ];
431+ };
432+
433+ ktp-text-ui = extendDerivation super.ktp-text-ui {
434+ buildInputs = [ scope.kdbusaddons ];
435+ };
436+
437+ ktuberling = kde4Package super.ktuberling;
438+
439+ ktux = kde4Package super.ktux;
440+
441+ kubrick = kde4Package super.kubrick;
442+
443+ kuser = kde4Package super.kuser;
444+
445+ kwalletmanager = kde4Package super.kwalletmanager;
446+
447+ lokalize = extendDerivation super.lokalize {
448+ buildInputs = [ scope.kdbusaddons ];
449+ };
450+
451+ libkcddb = kde4Package super.libkcddb;
452+
453+ libkcompactdisc = kde4Package super.libkcompactdisc;
454+
455+ libkdcraw = extendDerivation super.libkdcraw {
456+ buildInputs = with scope; [ kdelibs libraw ];
457+ nativeBuildInputs = [ scope.pkgconfig ];
458+ };
459+
460+ libkdeedu = kde4Package super.libkdeedu;
461+
462+ libkexiv2 = extendDerivation super.libkexiv2 {
463+ buildInputs = with scope; [ exiv2 kdelibs ];
464+ };
465+
466+ libkface = extendDerivation super.libkface {
467+ buildInputs = with scope; [ kdelibs opencv ];
468+ };
469+
470+ libkgeomap = extendDerivation (kde4Package super.libkgeomap) {
369471 cmakeFlags =
370− (drv.cmakeFlags or [])
371− ++ [ "-DCMAKE_MODULE_PATH=${scope.marble}/share/apps/cmake/modules" ];
372− });
472+ [ "-DCMAKE_MODULE_PATH=${scope.marble}/share/apps/cmake/modules" ];
473+ };
373474
374− libkipi = overrideDerivation super.libkipi (drv: {
375− buildInputs = (drv.buildInputs or []) ++ [ scope.kdelibs ];
376− });
475+ libkipi = extendDerivation super.libkipi {
476+ buildInputs = [ scope.kdelibs ];
477+ };
377478
378− libksane = overrideDerivation super.libksane (drv: {
379− buildInputs = (drv.buildInputs or []) ++ (with scope; [ kdelibs saneBackends]);
380− });
479+ libksane = extendDerivation super.libksane {
480+ buildInputs = with scope; [ kdelibs saneBackends];
481+ };
381482
382− okular = overrideDerivation super.okular (drv: {
383− nativeBuildInputs = (drv.nativeBuildInputs or []) ++ [ scope.pkgconfig ];
384− });
483+ lskat = kde4Package super.lskat;
385484
386− rocs = overrideDerivation super.rocs (drv: {
387− buildInputs = (drv.buildInputs or []) ++ [ scope.kdelibs4support ];
388− });
485+ marble = kde4Package super.marble;
389486
390− signon-kwallet-extension =
391− overrideDerivation super.signon-kwallet-extension (drv: {
392− buildInputs = (drv.buildInputs or []) ++ [ scope.signonqt5 ];
393− preConfigure = (drv.preConfigure or "") + ''
394− sed -i src/CMakeLists.txt \
395− -e "s,\''${SIGNONEXTENSION_PLUGINDIR},$out/lib/signon/extensions,"
396− '';
397− });
487+ mplayerthumbs = kde4Package super.mplayerthumbs;
488+
489+ okular = extendDerivation (kde4Package super.okular) {
490+ nativeBuildInputs = [ scope.pkgconfig ];
491+ };
492+
493+ pairs = kde4Package super.pairs;
494+
495+ palapeli = kde4Package super.palapeli;
496+
497+ picmi = kde4Package super.picmi;
498+
499+ poxml = kde4Package super.poxml;
500+
501+ rocs = extendDerivation super.rocs {
502+ buildInputs = [ scope.kdelibs4support ];
503+ };
504+
505+ signon-kwallet-extension = extendDerivation super.signon-kwallet-extension {
506+ buildInputs = [ scope.signonqt5 ];
507+ preConfigure = ''
508+ sed -i src/CMakeLists.txt \
509+ -e "s,\''${SIGNONEXTENSION_PLUGINDIR},$out/lib/signon/extensions,"
510+ '';
511+ };
512+
513+ superkaramba = kde4Package super.superkaramba;
514+
515+ svgpart = kde4Package super.svgpart;
516+
517+ sweeper = kde4Package super.sweeper;
518+
519+ umbrello = kde4Package super.umbrello;
520+
521+ zeroconf-ioslave = kde4Package super.zeroconf-ioslave;
398522
399523 };
400524
pkgs/applications/kde-apps-15.04/setup-hook.sh+11
@@ -1 +1,12 @@
11addToSearchPath XDG_DATA_DIRS @out@/share
2+
3+addQt4Plugins() {
4+ if [[ -d "$1/lib/qt4/plugins" ]]; then
5+ propagatedUserEnvPkgs+=" $1"
6+ fi
7+
8+ if [[ -d "$1/lib/kde4/plugins" ]]; then
9+ propagatedUserEnvPkgs+=" $1"
10+ fi
11+}
12+envHooks+=(addQt4Plugins)
pkgs/build-support/autonix/default.nix+94−229
@@ -1,5 +1,8 @@
1−{ bash, callPackage, coreutils, fetchurl, findutils, nix, runCommand, stdenv
2−, substituteAll, wget, writeText }:
1+{ pkgs }:
2+
3+let inherit (pkgs) bash coreutils findutils nix wget;
4+ inherit (pkgs) callPackage fetchurl runCommand stdenv substituteAll writeText;
5+in
36
47/* autonix is a collection of tools to automate packaging large collections
58 * of software, particularly KDE. It consists of three components:
@@ -10,10 +13,18 @@
1013 * expressions from the output of the previous steps.
1114 */
1215
13−with stdenv.lib;
16+let inherit (stdenv) lib; in
1417
1518let
1619
20+ resolveDeps = scope: deps:
21+ let resolve = dep:
22+ let res = scope."${dep}" or [];
23+ in if lib.isList res then res else [res];
24+ in lib.concatMap resolve deps;
25+
26+in rec {
27+
1728 /* Download the packages into the Nix store, compute their hashes,
1829 * and generate a package manifest in ./manifest.nix.
1930 */
@@ -32,240 +43,94 @@ let
3243 chmod +x $out
3344 '';
3445
35− /* Convert a manifest.nix file to XML to be read by autonix-deps. */
36− writeManifestXML = filename:
37− let
38− generateStores = mapAttrs (n: pkg: pkg.store);
39− manifest = importManifest filename { mirror = ""; };
40− stores = generateStores manifest;
41− in
42− writeText "manifest.xml" (builtins.toXML stores);
43−
44− /* Generate a set of Nix expressions for the collection, given a
45− * manifest.nix, dependencies.nix, and renames.nix in the same directory.
46− */
47− generateCollection = dir: # path to directory
48− { mirror # mirror to download packages from
49− , mkDerivation ? mkDerivation
50− , preResolve ? id # modify package set before dependency resolution
51− , postResolve ? id # modify package set after dependency resolution
52− , renames ? {}
53− , scope ? {}
54− }:
55− let
56−
57− fix = f: let x = f x; in x;
58−
59− resolvePkg = name:
60− mapAttrs (attr: if isDepAttr attr then resolveDeps scope else id);
61−
62− resolve = mapAttrs resolvePkg;
63−
64− derive = mapAttrs (name: mkDerivation);
65−
66− renames_ =
67− if renames == {} then (import (dir + "/renames.nix") {}) else renames;
68−
69− packages = importPackages dir renames_ { inherit mirror; };
70−
71− in derive (postResolve (resolve (preResolve packages)));
72−
73− pkgAttrName = pkg: (builtins.parseDrvName pkg.name).name;
74− pkgVersion = pkg: (builtins.parseDrvName pkg.name).version;
75−
76− depAttrNames = [
77− "buildInputs" "nativeBuildInputs"
78− "propagatedBuildInputs" "propagatedNativeBuildInputs"
79− "propagatedUserEnvPkgs"
80− ];
81−
82− isDepAttr = name: builtins.elem name depAttrNames;
83−
84− removePkgDeps = deps:
85− let removeDepsIfDepAttr = attr: value:
86− if isDepAttr attr then fold remove value deps else value;
87− in mapAttrs removeDepsIfDepAttr;
88−
89− hasDep = dep: pkg:
90− let depAttrs = attrValues (filterAttrs (n: v: isDepAttr n) pkg);
91− allDeps = concatLists depAttrs;
92− in elem dep allDeps;
93−
94− importManifest = path: { mirror }:
95− let
96− uniqueNames = manifest:
97− unique (map pkgAttrName manifest);
98−
99− versionsOf = manifest: name:
100− filter (pkg: pkgAttrName pkg == name) manifest;
101−
102− bestVersions = manifest:
103− let best = versions:
104− let
105− strictlyLess = a: b:
106− builtins.compareVersions (pkgVersion a) (pkgVersion b) > 0;
107− sorted = sort strictlyLess versions;
108− in head sorted;
109− in map (name: best (versionsOf manifest name)) (uniqueNames manifest);
110−
111− withNames = manifest:
112− builtins.listToAttrs
113− (map (p: nameValuePair (toLower (pkgAttrName p)) p) manifest);
114−
115− orig = import path { inherit stdenv fetchurl mirror; };
116− in
117− fold (f: x: f x) orig [ withNames bestVersions ];
118−
119− importPackages = path: renames: manifestScope:
120− let
121−
122− # Do not allow any package to depend on itself.
123− breakRecursion =
124− let removeSelfDep = pkg:
125− mapAttrs
126− (n: if isDepAttr n
127− then filter (dep: dep != pkg && renamed dep != pkg)
128− else id);
129− in mapAttrs removeSelfDep;
130−
131− renamed = dep: renames."${dep}" or dep;
132−
133− manifest = importManifest (path + "/manifest.nix") manifestScope;
134−
135− deps = import (path + "/dependencies.nix") {};
136−
137− mkPkg = name: manifest:
138− {
139− inherit (manifest) name src;
140− inherit (deps."${name}")
141− buildInputs nativeBuildInputs propagatedBuildInputs
142− propagatedNativeBuildInputs propagatedUserEnvPkgs;
143− };
144−
145− in breakRecursion (mapAttrs mkPkg manifest);
146−
147− mkDerivation = drv: stdenv.mkDerivation (drv // { src = fetchurl drv.src; });
148−
149− resolveDeps = scope: deps:
150− let resolve = dep:
151− let res = scope."${dep}" or [];
152− in if lib.isList res then res else [res];
153− in lib.concatMap resolve deps;
154−
155− userEnvPkg = dep:
156− mapAttrs
157− (name: pkg: pkg // {
158− propagatedUserEnvPkgs =
159− (pkg.propagatedUserEnvPkgs or [])
160− ++ optional (hasDep dep pkg) dep;
161− });
162−
163−in
164−{
165− inherit generateCollection;
166− inherit importManifest;
167− inherit isDepAttr;
168− inherit manifest;
169− inherit removePkgDeps;
170− inherit resolveDeps;
171− inherit userEnvPkg;
172− inherit writeManifestXML;
173−
174− blacklist = names: pkgs:
175− let
176− removeDeps = deps: mapAttrs (name: removePkgDeps deps);
177− removePkgs = names: pkgs: builtins.removeAttrs pkgs names;
178− in removeDeps names (removePkgs names pkgs);
179−
180− lib = rec {
181− mkPackage = callPackage: defaultOverride: name: pkg: let drv =
182− { mkDerivation, fetchurl, scope }:
183−
184− mkDerivation (defaultOverride {
185− inherit (pkg) name;
46+ mkPackage = callPackage: defaultOverride: name: pkg: let drv =
47+ { mkDerivation, fetchurl, scope }:
18648
187− src = fetchurl pkg.src;
49+ mkDerivation (defaultOverride {
50+ inherit (pkg) name;
18851
189− buildInputs = resolveDeps scope pkg.buildInputs;
190− nativeBuildInputs = resolveDeps scope pkg.nativeBuildInputs;
191− propagatedBuildInputs = resolveDeps scope pkg.propagatedBuildInputs;
192− propagatedNativeBuildInputs =
193− resolveDeps scope pkg.propagatedNativeBuildInputs;
194− propagatedUserEnvPkgs = resolveDeps scope pkg.propagatedUserEnvPkgs;
52+ src = fetchurl pkg.src;
19553
196− enableParallelBuilding = true;
197− });
198− in callPackage drv {};
54+ buildInputs = resolveDeps scope pkg.buildInputs;
55+ nativeBuildInputs = resolveDeps scope pkg.nativeBuildInputs;
56+ propagatedBuildInputs = resolveDeps scope pkg.propagatedBuildInputs;
57+ propagatedNativeBuildInputs =
58+ resolveDeps scope pkg.propagatedNativeBuildInputs;
59+ propagatedUserEnvPkgs = resolveDeps scope pkg.propagatedUserEnvPkgs;
19960
200− renameDeps = renames: lib.mapAttrs (name: pkg:
201− let breakCycles = lib.filter (dep: dep != name);
202− rename = dep: renames."${dep}" or dep;
203− in pkg // {
204− buildInputs = breakCycles (map rename pkg.buildInputs);
205− nativeBuildInputs = breakCycles (map rename pkg.nativeBuildInputs);
206− propagatedBuildInputs = breakCycles (map rename pkg.propagatedBuildInputs);
207− propagatedNativeBuildInputs = breakCycles (map rename pkg.propagatedNativeBuildInputs);
208− propagatedUserEnvPkgs = breakCycles (map rename pkg.propagatedUserEnvPkgs);
209− });
210−
211− propagateDeps = propagated: lib.mapAttrs (name: pkg:
212− let isPropagated = dep: lib.elem dep propagated;
213− isNotPropagated = dep: !(isPropagated dep);
214− in pkg // {
215− buildInputs = lib.filter isNotPropagated pkg.buildInputs;
216− nativeBuildInputs = lib.filter isNotPropagated pkg.nativeBuildInputs;
217− propagatedBuildInputs =
218− pkg.propagatedBuildInputs
219− ++ lib.filter isPropagated pkg.buildInputs;
220− propagatedNativeBuildInputs =
221− pkg.propagatedNativeBuildInputs
222− ++ lib.filter isPropagated pkg.nativeBuildInputs;
223− });
61+ enableParallelBuilding = true;
62+ });
63+ in callPackage drv {};
64+
65+ renameDeps = renames: lib.mapAttrs (name: pkg:
66+ let breakCycles = lib.filter (dep: dep != name);
67+ rename = dep: renames."${dep}" or dep;
68+ in pkg // {
69+ buildInputs = breakCycles (map rename pkg.buildInputs);
70+ nativeBuildInputs = breakCycles (map rename pkg.nativeBuildInputs);
71+ propagatedBuildInputs = breakCycles (map rename pkg.propagatedBuildInputs);
72+ propagatedNativeBuildInputs =
73+ breakCycles (map rename pkg.propagatedNativeBuildInputs);
74+ propagatedUserEnvPkgs = breakCycles (map rename pkg.propagatedUserEnvPkgs);
75+ });
22476
225− nativeDeps = native: lib.mapAttrs (name: pkg:
226− let isNative = dep: lib.elem dep native;
227− isNotNative = dep: !(isNative dep);
228− in pkg // {
229− buildInputs = lib.filter isNotNative pkg.buildInputs;
230− nativeBuildInputs =
231− pkg.nativeBuildInputs
232− ++ lib.filter isNative pkg.buildInputs;
233− propagatedBuildInputs = lib.filter isNotNative pkg.propagatedBuildInputs;
234− propagatedNativeBuildInputs =
235− pkg.propagatedNativeBuildInputs
236− ++ lib.filter isNative pkg.propagatedBuildInputs;
237− });
77+ propagateDeps = propagated: lib.mapAttrs (name: pkg:
78+ let isPropagated = dep: lib.elem dep propagated;
79+ isNotPropagated = dep: !(isPropagated dep);
80+ in pkg // {
81+ buildInputs = lib.filter isNotPropagated pkg.buildInputs;
82+ nativeBuildInputs = lib.filter isNotPropagated pkg.nativeBuildInputs;
83+ propagatedBuildInputs =
84+ pkg.propagatedBuildInputs
85+ ++ lib.filter isPropagated pkg.buildInputs;
86+ propagatedNativeBuildInputs =
87+ pkg.propagatedNativeBuildInputs
88+ ++ lib.filter isPropagated pkg.nativeBuildInputs;
89+ });
23890
239− userEnvDeps = user: lib.mapAttrs (name: pkg:
240− let allDeps = with pkg; lib.concatLists [
241− buildInputs
242− nativeBuildInputs
243− propagatedBuildInputs
244− propagatedNativeBuildInputs
245− ];
246− in assert (lib.isList allDeps); pkg // {
247− propagatedUserEnvPkgs = lib.filter (dep: lib.elem dep user) allDeps;
248− });
91+ nativeDeps = native: lib.mapAttrs (name: pkg:
92+ let isNative = dep: lib.elem dep native;
93+ isNotNative = dep: !(isNative dep);
94+ in pkg // {
95+ buildInputs = lib.filter isNotNative pkg.buildInputs;
96+ nativeBuildInputs =
97+ pkg.nativeBuildInputs
98+ ++ lib.filter isNative pkg.buildInputs;
99+ propagatedBuildInputs = lib.filter isNotNative pkg.propagatedBuildInputs;
100+ propagatedNativeBuildInputs =
101+ pkg.propagatedNativeBuildInputs
102+ ++ lib.filter isNative pkg.propagatedBuildInputs;
103+ });
249104
250− overrideDerivation = pkg: f: pkg.override (super: super // {
251− mkDerivation = drv: super.mkDerivation (drv // f drv);
105+ userEnvDeps = user: lib.mapAttrs (name: pkg:
106+ let allDeps = with pkg; lib.concatLists [
107+ buildInputs
108+ nativeBuildInputs
109+ propagatedBuildInputs
110+ propagatedNativeBuildInputs
111+ ];
112+ in assert (lib.isList allDeps); pkg // {
113+ propagatedUserEnvPkgs = lib.filter (dep: lib.elem dep user) allDeps;
252114 });
253115
254− extendDerivation = pkg: attrs:
255− let mergeAttrBy = lib.mergeAttrBy // {
256− propagatedNativeBuildInputs = a: b: a ++ b;
257− NIX_CFLAGS_COMPILE = a: b: "${a} ${b}";
258− cmakeFlags = a: b: a ++ b;
259− };
260− mergeAttrsByFunc = sets:
261− let merged = lib.foldl lib.mergeAttrByFunc { inherit mergeAttrBy; } sets;
262− in builtins.removeAttrs merged ["mergeAttrBy"];
263− in overrideDerivation pkg (drv: mergeAttrsByFunc [ drv attrs ]);
116+ overrideDerivation = pkg: f: pkg.override (super: super // {
117+ mkDerivation = drv: super.mkDerivation (drv // f drv);
118+ });
264119
265− overrideScope = pkg: fnOrSet: pkg.override (super: super // {
266− scope = if builtins.isFunction fnOrSet
267− then super.scope // fnOrSet super.scope
268− else super.scope // fnOrSet;
269− });
270− };
120+ extendDerivation = pkg: attrs:
121+ let mergeAttrBy = lib.mergeAttrBy // {
122+ propagatedNativeBuildInputs = a: b: a ++ b;
123+ NIX_CFLAGS_COMPILE = a: b: "${a} ${b}";
124+ cmakeFlags = a: b: a ++ b;
125+ };
126+ mergeAttrsByFunc = sets:
127+ let merged = lib.foldl lib.mergeAttrByFunc { inherit mergeAttrBy; } sets;
128+ in builtins.removeAttrs merged ["mergeAttrBy"];
129+ in overrideDerivation pkg (drv: mergeAttrsByFunc [ drv attrs ]);
130+
131+ overrideScope = pkg: fnOrSet: pkg.override (super: super // {
132+ scope = if builtins.isFunction fnOrSet
133+ then super.scope // fnOrSet super.scope
134+ else super.scope // fnOrSet;
135+ });
271136}
pkgs/desktops/plasma-5.3/default.nix+36−40
@@ -16,7 +16,7 @@
1616
1717let inherit (pkgs) autonix stdenv symlinkJoin; in
1818
19−let kf5Orig = kf5; in
19+with autonix; let inherit (stdenv) lib; in
2020
2121let
2222 kf5_ = if kf5 != null then kf5 else pkgs.kf510;
@@ -26,7 +26,7 @@ in
2626let
2727
2828 qt5 = qt5_;
29− kf5 = kf5_.override { inherit qt5; };
29+ kf5 = kf5_.override { inherit debug qt5; };
3030
3131 kdePackage = name: pkg:
3232 let defaultOverride = drv: drv // {
@@ -106,7 +106,7 @@ let
106106 modemmanager openconnect openexr pam pango qt4 samba
107107 socat substituteAll taglib utillinux wayland xapian
108108 xkeyboard_config xlibs xorg;
109− boost = boost155;
109+ boost = boost156;
110110 canberra = libcanberra;
111111 epub = ebook_tools;
112112 fontforge_executable = fontforge;
@@ -153,7 +153,7 @@ let
153153 });
154154 in symlinkJoin "breeze-${version}" [ breeze-qt4 breeze-qt5 ];
155155
156− kde-gtk-config = overrideDerivation super.kde-gtk-config (drv: {
156+ kde-gtk-config = extendDerivation super.kde-gtk-config {
157157 NIX_CFLAGS_COMPILE = with scope;
158158 lib.concatStringsSep " " [
159159 "-I${cairo}/include/cairo"
@@ -163,55 +163,51 @@ let
163163 "-I${glib}/lib/glib-2.0/include"
164164 "-I${pango}/include/pango-1.0"
165165 ];
166− });
166+ };
167167
168− kfilemetadata = overrideDerivation super.kfilemetadata (drv: {
169− buildInputs = drv.buildInputs ++ [ pkgs.attr ];
170− });
168+ kfilemetadata = extendDerivation super.kfilemetadata {
169+ buildInputs = [ scope.attr ];
170+ };
171171
172− kwin = overrideDerivation super.kwin (drv: {
173− buildInputs =
174− drv.buildInputs ++ (with pkgs.xlibs; [ libICE libSM libXcursor ]);
172+ kwin = extendDerivation super.kwin {
173+ buildInputs = with scope.xlibs; [ libICE libSM libXcursor ];
175174 patches = [ ./kwin/kwin-import-plugin-follow-symlinks.patch ];
176− });
175+ };
177176
178− libkscreen = overrideDerivation super.libkscreen (drv: {
179− buildInputs = drv.buildInputs ++ [ pkgs.xlibs.libXrandr];
180− });
177+ libkscreen = extendDerivation super.libkscreen {
178+ buildInputs = [ scope.xlibs.libXrandr];
179+ };
181180
182− plasma-desktop = overrideDerivation super.plasma-desktop (drv: {
183− buildInputs =
184− drv.buildInputs
185− ++ [ pkgs.libcanberra ]
186− ++ (with pkgs.xlibs; [ libxkbfile libXcursor libXft ]);
181+ plasma-desktop = extendDerivation super.plasma-desktop {
182+ buildInputs = with scope;
183+ [ canberra ]
184+ ++ (with xlibs; [ libxkbfile libXcursor libXft ]);
187185 patches = [
188186 ./plasma-desktop/plasma-desktop-hwclock.patch
189187 ./plasma-desktop/plasma-desktop-zoneinfo.patch
190− (pkgs.substituteAll {
188+ (scope.substituteAll {
191189 src = ./plasma-desktop/plasma-desktop-xkb-rules.patch;
192− xkb = pkgs.xkeyboard_config;
190+ xkb = scope.xkeyboard_config;
193191 })
194192 ];
195193 preConfigure = ''
196194 substituteInPlace kcms/dateandtime/helper.cpp \
197195 --subst-var-by hwclock "${scope.utillinux}/sbin/hwclock"
198196 '';
199− });
197+ };
200198
201− plasma-workspace = overrideDerivation super.plasma-workspace (drv: {
199+ plasma-workspace = extendDerivation super.plasma-workspace {
202200 patches = [
203− (pkgs.substituteAll {
201+ (scope.substituteAll {
204202 src = ./plasma-workspace/0001-startkde-NixOS-patches.patch;
205− inherit (pkgs) bash gnused gnugrep socat;
206− inherit (kf5) kconfig kinit kservice;
207− inherit (pkgs.xorg) mkfontdir xmessage xprop xrdb xset xsetroot;
208− qt5tools = qt5.tools;
209− dbus_tools = pkgs.dbus.tools;
203+ inherit (scope) bash gnused gnugrep socat;
204+ inherit (scope) kconfig kinit kservice;
205+ inherit (scope.xorg) mkfontdir xmessage xprop xrdb xset xsetroot;
206+ qt5tools = scope.qt5tools;
207+ dbus_tools = scope.dbus.tools;
210208 })
211209 ];
212− buildInputs =
213− (drv.buildInputs or [])
214− ++ (with pkgs.xlibs; [ libSM libXcursor scope.pam ]);
210+ buildInputs = with scope.xlibs; [ libSM libXcursor scope.pam ];
215211 postPatch = ''
216212 substituteInPlace startkde/kstartupconfig/kstartupconfig.cpp \
217213 --replace kdostartupconfig5 $out/bin/kdostartupconfig5
@@ -220,15 +216,15 @@ let
220216 substituteInPlace startkde/startkde.cmake \
221217 --subst-var-by plasmaWorkspace "$out"
222218 '';
223− });
219+ };
224220
225− powerdevil = overrideDerivation super.powerdevil (drv: {
226− buildInputs = drv.buildInputs ++ [pkgs.xlibs.libXrandr];
227− });
221+ powerdevil = extendDerivation super.powerdevil {
222+ buildInputs = [ scope.xlibs.libXrandr ];
223+ };
228224
229− sddm-kcm = overrideDerivation super.sddm-kcm (drv: {
230− buildInputs = drv.buildInputs ++ [pkgs.xlibs.libXcursor];
231− });
225+ sddm-kcm = extendDerivation super.sddm-kcm {
226+ buildInputs = [ scope.xlibs.libXcursor ];
227+ };
232228
233229 };
234230
pkgs/development/libraries/kde-frameworks-5.10/default.nix+57−59
@@ -12,13 +12,19 @@
1212# make a copy of this directory first. After copying, be sure to delete ./tmp
1313# if it exists. Then follow the minor update instructions.
1414
15−{ autonix, fetchurl, pkgs, qt5, stdenv, newScope, debug ? false }:
15+{ pkgs, newScope, qt5 ? null, debug ? false }:
1616
17−with autonix;
17+let inherit (pkgs) autonix stdenv symlinkJoin; in
1818
19−let inherit (stdenv) lib; in
19+with autonix; let inherit (stdenv) lib; in
2020
2121let
22+ qt5_ = if qt5 != null then qt5 else pkgs.qt54;
23+in
24+
25+let
26+
27+ qt5 = qt5_;
2228
2329 super =
2430 let json = builtins.fromJSON (builtins.readFile ./packages.json);
@@ -114,8 +120,6 @@ let
114120 );
115121
116122 self = super // {
117− inherit kdePackage scope;
118−
119123 extra-cmake-modules = overrideDerivation super.extra-cmake-modules (drv: {
120124 buildInputs = [];
121125 nativeBuildInputs = [];
@@ -132,78 +136,72 @@ let
132136 };
133137 });
134138
135− frameworkintegration = overrideDerivation super.frameworkintegration (drv: {
136− buildInputs = drv.buildInputs ++ [ pkgs.xlibs.libXcursor ];
137− });
139+ frameworkintegration = extendDerivation super.frameworkintegration {
140+ buildInputs = [ scope.xlibs.libXcursor ];
141+ };
138142
139− kauth = overrideDerivation super.kauth (drv: {
140− buildInputs = drv.buildInputs ++ [ scope.polkit_qt5 ];
141− patches = [./kauth/kauth-policy-install.patch];
142− });
143+ kauth = extendDerivation super.kauth {
144+ buildInputs = [ scope.polkit_qt5 ];
145+ patches = [ ./kauth/kauth-policy-install.patch ];
146+ };
143147
144− kcmutils = overrideDerivation super.kcmutils (drv: {
145− patches = [./kcmutils/kcmutils-pluginselector-follow-symlinks.patch];
146− });
147−
148− kconfigwidgets = overrideDerivation super.kconfigwidgets (drv: {
149− patches = [./kconfigwidgets/kconfigwidgets-helpclient-follow-symlinks.patch];
150− });
148+ kcmutils = extendDerivation super.kcmutils {
149+ patches = [ ./kcmutils/kcmutils-pluginselector-follow-symlinks.patch ];
150+ };
151151
152− kdelibs4support = overrideDerivation super.kdelibs4support (drv: {
153− buildInputs = drv.buildInputs ++ [ scope.networkmanager pkgs.xlibs.libSM ];
154− cmakeFlags =
155− drv.cmakeFlags
156− ++ [
157− "-DDocBookXML4_DTD_DIR=${pkgs.docbook_xml_dtd_45}/xml/dtd/docbook"
158− "-DDocBookXML4_DTD_VERSION=4.5"
159− ];
160− });
152+ kconfigwidgets = extendDerivation super.kconfigwidgets {
153+ patches = [ ./kconfigwidgets/kconfigwidgets-helpclient-follow-symlinks.patch ];
154+ };
161155
162− kdoctools = overrideDerivation super.kdoctools (drv: {
163− propagatedNativeBuildInputs =
164− drv.propagatedNativeBuildInputs ++ [ scope.perl scope.perlPackages.URI ];
165− cmakeFlags =
166− drv.cmakeFlags
167− ++ [
168− "-DDocBookXML4_DTD_DIR=${pkgs.docbook_xml_dtd_45}/xml/dtd/docbook"
169− "-DDocBookXML4_DTD_VERSION=4.5"
170− "-DDocBookXSL_DIR=${pkgs.docbook5_xsl}/xml/xsl/docbook"
171− ];
172− patches = [./kdoctools/kdoctools-no-find-docbook-xml.patch];
173− });
156+ kdelibs4support = extendDerivation super.kdelibs4support {
157+ buildInputs = [ scope.networkmanager scope.xlibs.libSM ];
158+ cmakeFlags = [
159+ "-DDocBookXML4_DTD_DIR=${pkgs.docbook_xml_dtd_45}/xml/dtd/docbook"
160+ "-DDocBookXML4_DTD_VERSION=4.5"
161+ ];
162+ };
163+
164+ kdoctools = extendDerivation super.kdoctools {
165+ propagatedNativeBuildInputs = [ scope.perl scope.perlPackages.URI ];
166+ cmakeFlags = [
167+ "-DDocBookXML4_DTD_DIR=${scope.docbook_xml_dtd_45}/xml/dtd/docbook"
168+ "-DDocBookXML4_DTD_VERSION=4.5"
169+ "-DDocBookXSL_DIR=${scope.docbook5_xsl}/xml/xsl/docbook"
170+ ];
171+ patches = [ ./kdoctools/kdoctools-no-find-docbook-xml.patch ];
172+ };
174173
175− ki18n = overrideDerivation super.ki18n (drv: {
176− propagatedNativeBuildInputs =
177− drv.propagatedNativeBuildInputs ++ [ scope.libintl scope.pythoninterp ];
178− });
174+ ki18n = extendDerivation super.ki18n {
175+ propagatedNativeBuildInputs = with scope; [ libintl pythoninterp ];
176+ };
179177
180− kimageformats = overrideDerivation super.kimageformats (drv: {
178+ kimageformats = extendDerivation super.kimageformats {
181179 NIX_CFLAGS_COMPILE = "-I${pkgs.ilmbase}/include/OpenEXR";
182− });
180+ };
183181
184− kinit = overrideDerivation super.kinit (drv: {
182+ kinit = extendDerivation super.kinit {
185183 patches = [./kinit/0001-kinit-libpath.patch];
186− });
184+ };
187185
188− kpackage = overrideDerivation super.kpackage (drv: {
189− patches = [./kpackage/0001-allow-external-paths.patch];
190− });
186+ kpackage = extendDerivation super.kpackage {
187+ patches = [ ./kpackage/0001-allow-external-paths.patch ];
188+ };
191189
192− kservice = overrideDerivation super.kservice (drv: {
193− buildInputs = drv.buildInputs ++ [ self.kwindowsystem ];
190+ kservice = extendDerivation super.kservice {
191+ buildInputs = [ scope.kwindowsystem ];
194192 patches = [
195193 ./kservice/kservice-kbuildsycoca-follow-symlinks.patch
196194 ./kservice/kservice-kbuildsycoca-no-canonicalize-path.patch
197195 ];
198− });
196+ };
199197
200− ktexteditor = overrideDerivation super.ktexteditor (drv: {
198+ ktexteditor = extendDerivation super.ktexteditor {
201199 patches = [ ./ktexteditor/0001-no-qcoreapplication.patch ];
202− });
200+ };
203201
204− networkmanager-qt = overrideDerivation super.networkmanager-qt (drv: {
205− propagatedBuildInputs = drv.propagatedBuildInputs ++ [ scope.networkmanager ];
206− });
202+ networkmanager-qt = extendDerivation super.networkmanager-qt {
203+ propagatedBuildInputs = [ scope.networkmanager ];
204+ };
207205 };
208206
209207in self
pkgs/top-level/all-packages.nix+3−5
@@ -251,7 +251,7 @@ let
251251 theAttrSet = arg;
252252 };
253253
254− autonix = callPackage ../build-support/autonix {};
254+ autonix = import ../build-support/autonix { inherit pkgs; };
255255
256256 autoreconfHook = makeSetupHook
257257 { substitutions = { inherit autoconf automake libtool gettext; }; }
@@ -11658,9 +11658,7 @@ let
1165811658 boost = boost155;
1165911659 };
1166011660
11661− kdeApps_15_04 = recurseIntoAttrs (callPackage ../applications/kde-apps-15.04 {
11662− kf5 = kf510;
11663− });
11661+ kdeApps_15_04 = recurseIntoAttrs (callPackage ../applications/kde-apps-15.04 {});
1166411662 kdeApps_stable = kdeApps_15_04;
1166511663 kdeApps_latest = kdeApps_15_04;
1166611664
@@ -13940,7 +13938,7 @@ let
1394013938
1394113939 numix-gtk-theme = callPackage ../misc/themes/gtk3/numix-gtk-theme { };
1394213940
13943− plasma53 = recurseIntoAttrs (import ../desktops/plasma-5.3 { inherit pkgs newScope; });
13941+ plasma53 = recurseIntoAttrs (callPackage ../desktops/plasma-5.3 { inherit pkgs newScope; });
1394413942 plasma5_latest = plasma53;
1394513943 plasma5_stable = plasma53;
1394613944