plasma5: rename plasmaPackage to mkDerivation

This commit is contained in:
Thomas Tuegel 2017-05-15 11:44:58 -05:00
parent 6beea32ab1
commit eaa644a5af
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59
38 changed files with 106 additions and 133 deletions

View File

@ -1,10 +1,10 @@
{
plasmaPackage, extra-cmake-modules, shared_mime_info,
mkDerivation, extra-cmake-modules, shared_mime_info,
bluez-qt, kcoreaddons, kdbusaddons, kded, ki18n, kiconthemes, kio,
knotifications, kwidgetsaddons, kwindowsystem, plasma-framework, qtdeclarative
}:
plasmaPackage {
mkDerivation {
name = "bluedevil";
nativeBuildInputs = [ extra-cmake-modules shared_mime_info ];
propagatedBuildInputs = [

View File

@ -1,8 +1,8 @@
{
plasmaPackage
mkDerivation
}:
plasmaPackage {
mkDerivation {
name = "breeze-grub";
outputs = [ "out" ];
installPhase = ''

View File

@ -1,9 +1,6 @@
{ plasmaPackage
, extra-cmake-modules
, qtbase
}:
{ mkDerivation , extra-cmake-modules , qtbase }:
plasmaPackage {
mkDerivation {
name = "breeze-gtk";
nativeBuildInputs = [ extra-cmake-modules ];
cmakeFlags = [ "-DWITH_GTK3_VERSION=3.20" ];

View File

@ -1,10 +1,10 @@
{
plasmaPackage, lib, copyPathsToStore,
mkDerivation, lib, copyPathsToStore,
extra-cmake-modules,
plymouth
}:
plasmaPackage {
mkDerivation {
name = "breeze-plymouth";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ plymouth ];

View File

@ -1,10 +1,10 @@
{
plasmaPackage, lib,
mkDerivation, lib,
automoc4, cmake, perl, pkgconfig,
kdelibs4, qt4, xproto
}:
plasmaPackage {
mkDerivation {
name = "breeze-qt4";
sname = "breeze";
buildInputs = [ kdelibs4 qt4 xproto ];

View File

@ -1,11 +1,11 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules,
frameworkintegration, kcmutils, kconfigwidgets, kcoreaddons, kdecoration,
kguiaddons, ki18n, kwayland, kwindowsystem, plasma-framework, qtx11extras
}:
plasmaPackage {
mkDerivation {
name = "breeze-qt5";
sname = "breeze";
nativeBuildInputs = [ extra-cmake-modules ];

View File

@ -1,27 +0,0 @@
{ mkDerivation, lib, fetchurl }:
let
mirror = "mirror://kde";
srcs = import ../srcs.nix { inherit fetchurl mirror; };
in
args:
let
inherit (args) name;
sname = args.sname or name;
inherit (srcs."${sname}") src version;
in
mkDerivation (args // {
name = "${name}-${version}";
inherit src;
meta = {
license = with lib.licenses; [
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ttuegel ];
homepage = "http://www.kde.org";
} // (args.meta or {});
})

View File

@ -31,13 +31,36 @@ existing packages here and modify it as necessary.
}:
let
srcs = import ./srcs.nix {
inherit fetchurl;
mirror = "mirror://kde";
};
packages = self: with self;
let
callPackage = self.newScope {
plasmaPackage = import ./build-support/package.nix {
inherit lib fetchurl;
mkDerivation = libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
};
mkDerivation = args:
let
inherit (args) name;
sname = args.sname or name;
inherit (srcs."${sname}") src version;
mkDerivation = libsForQt5.callPackage ({ mkDerivation }: mkDerivation) {};
in
mkDerivation (args // {
name = "${name}-${version}";
inherit src;
outputs = args.outputs or [ "out" "dev" ];
meta = {
license = with lib.licenses; [
lgpl21Plus lgpl3Plus bsd2 mit gpl2Plus gpl3Plus fdl12
];
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ ttuegel ];
homepage = "http://www.kde.org";
} // (args.meta or {});
});
};
in {
bluedevil = callPackage ./bluedevil.nix {};

View File

@ -1,10 +1,10 @@
{ plasmaPackage
{ mkDerivation
, extra-cmake-modules
, boost, kconfig, kcoreaddons, kdbusaddons, ki18n, kio, kglobalaccel
, kwindowsystem, kxmlgui
}:
plasmaPackage {
mkDerivation {
name = "kactivitymanagerd";
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [

View File

@ -1,10 +1,10 @@
{
plasmaPackage, extra-cmake-modules,
mkDerivation, extra-cmake-modules,
kcmutils, kconfig, kdelibs4support, kdesu, kdoctools, ki18n, kiconthemes,
kwindowsystem, qtsvg, qtx11extras
}:
plasmaPackage {
mkDerivation {
name = "kde-cli-tools";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [

View File

@ -1,4 +1,4 @@
{ plasmaPackage
{ mkDerivation
, extra-cmake-modules
, glib
, gtk2
@ -12,7 +12,7 @@
, knewstuff
}:
plasmaPackage {
mkDerivation {
name = "kde-gtk-config";
patches = [ ./0001-follow-symlinks.patch ];
nativeBuildInputs = [ extra-cmake-modules ];

View File

@ -1,6 +1,6 @@
{ plasmaPackage, extra-cmake-modules, qtbase }:
{ mkDerivation, extra-cmake-modules, qtbase }:
plasmaPackage {
mkDerivation {
name = "kdecoration";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [ qtbase ];

View File

@ -1,16 +1,13 @@
{ plasmaPackage, extra-cmake-modules, kdoctools
{ mkDerivation, extra-cmake-modules, kdoctools
, kconfig, kconfigwidgets, kcoreaddons, kcmutils, kdelibs4support, ki18n
, kio, knewstuff, kross, krunner, kservice, ksysguard, kunitconversion
, plasma-framework, plasma-workspace, qtdeclarative, qtx11extras
, ibus
}:
plasmaPackage {
mkDerivation {
name = "kdeplasma-addons";
nativeBuildInputs = [
extra-cmake-modules
kdoctools
];
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [
kconfig kconfigwidgets kcoreaddons kcmutils kdelibs4support kio knewstuff
kross krunner kservice ksysguard kunitconversion plasma-framework

View File

@ -1,8 +1,8 @@
{ plasmaPackage, extra-cmake-modules, kdoctools, kdelibs4support
{ mkDerivation, extra-cmake-modules, kdoctools, kdelibs4support
, qtx11extras
}:
plasmaPackage {
mkDerivation {
name = "kgamma5";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [ kdelibs4support qtx11extras ];

View File

@ -1,10 +1,10 @@
{ plasmaPackage, extra-cmake-modules, kdoctools, kcmutils
{ mkDerivation, extra-cmake-modules, kdoctools, kcmutils
, kdbusaddons, kdelibs4support, kglobalaccel, ki18n, kio, kxmlgui
, plasma-framework, plasma-workspace, qtx11extras
, fetchpatch
}:
plasmaPackage {
mkDerivation {
name = "khotkeys";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [

View File

@ -1,12 +1,12 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules, kdoctools,
kcmutils, kcompletion, kconfig, kconfigwidgets, kcoreaddons, kdbusaddons,
kdeclarative, kdelibs4support, ki18n, kiconthemes, kio, kpackage, kservice,
kwayland, kwidgetsaddons, kxmlgui, libraw1394, mesa_glu, pciutils, solid
}:
plasmaPackage {
mkDerivation {
name = "kinfocenter";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [

View File

@ -1,11 +1,11 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules, kdoctools,
kdbusaddons, kdelibs4support, khotkeys, ki18n, kiconthemes, kio, kxmlgui,
sonnet
}:
plasmaPackage {
mkDerivation {
name = "kmenuedit";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [

View File

@ -1,9 +1,9 @@
{ plasmaPackage, extra-cmake-modules, kconfig, kconfigwidgets
{ mkDerivation, extra-cmake-modules, kconfig, kconfigwidgets
, kdbusaddons, kglobalaccel, ki18n, kwidgetsaddons, kxmlgui
, libkscreen, qtdeclarative, qtgraphicaleffects
}:
plasmaPackage {
mkDerivation {
name = "kscreen";
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [

View File

@ -1,11 +1,11 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules, kdoctools,
kcmutils, kcrash, kdeclarative, kdelibs4support, kglobalaccel, kidletime,
kwayland, libXcursor, pam, plasma-framework, qtdeclarative, wayland
}:
plasmaPackage {
mkDerivation {
name = "kscreenlocker";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [

View File

@ -1,8 +1,8 @@
{ plasmaPackage, extra-cmake-modules, kdoctools, kcoreaddons
{ mkDerivation, extra-cmake-modules, kdoctools, kcoreaddons
, ki18n, kwallet, kwidgetsaddons
}:
plasmaPackage {
mkDerivation {
name = "ksshaskpass";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [ kcoreaddons ki18n kwallet kwidgetsaddons ];

View File

@ -1,12 +1,12 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules, kdoctools,
lm_sensors,
kconfig, kcoreaddons, kdelibs4support, ki18n, kiconthemes, kitemviews,
knewstuff, libksysguard, qtwebkit
}:
plasmaPackage {
mkDerivation {
name = "ksysguard";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [ lm_sensors ];

View File

@ -1,7 +1,6 @@
{ plasmaPackage, extra-cmake-modules, pam, socat, libgcrypt
}:
{ mkDerivation, extra-cmake-modules, pam, socat, libgcrypt }:
plasmaPackage {
mkDerivation {
name = "kwallet-pam";
nativeBuildInputs = [ extra-cmake-modules ];

View File

@ -1,16 +1,7 @@
{ plasmaPackage
, extra-cmake-modules
, kidletime
, kwayland
, kwindowsystem
}:
{ mkDerivation , extra-cmake-modules , kidletime , kwayland , kwindowsystem }:
plasmaPackage {
mkDerivation {
name = "kwayland-integration";
nativeBuildInputs = [
extra-cmake-modules
];
propagatedBuildInputs = [
kidletime kwindowsystem kwayland
];
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [ kidletime kwindowsystem kwayland ];
}

View File

@ -1,5 +1,5 @@
{
plasmaPackage, lib, copyPathsToStore,
mkDerivation, lib, copyPathsToStore,
extra-cmake-modules, kdoctools,
breeze-qt5, epoxy, kactivities, kcompletion, kcmutils, kconfig,
kconfigwidgets, kcoreaddons, kcrash, kdeclarative, kdecoration, kglobalaccel,
@ -10,7 +10,7 @@
xcb-util-cursor, xwayland
}:
plasmaPackage {
mkDerivation {
name = "kwin";
nativeBuildInputs = [
extra-cmake-modules

View File

@ -1,8 +1,8 @@
{ plasmaPackage, extra-cmake-modules, kcoreaddons, ki18n, kpty
{ mkDerivation, extra-cmake-modules, kcoreaddons, ki18n, kpty
, knotifications, kdbusaddons
}:
plasmaPackage {
mkDerivation {
name = "kwrited";
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [ kcoreaddons ki18n kpty knotifications kdbusaddons ];

View File

@ -1,17 +1,13 @@
{ plasmaPackage, lib, copyPathsToStore
{ mkDerivation, lib, copyPathsToStore
, extra-cmake-modules
, kwayland, libXrandr
, qtx11extras
}:
plasmaPackage {
mkDerivation {
name = "libkscreen";
nativeBuildInputs = [
extra-cmake-modules
];
propagatedBuildInputs = [
kwayland libXrandr qtx11extras
];
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [ kwayland libXrandr qtx11extras ];
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
preConfigure = ''
NIX_CFLAGS_COMPILE+=" -DNIXPKGS_LIBKSCREEN_BACKENDS=\"''${!outputLib}/$qtPluginPrefix/kf5/kscreen\""

View File

@ -1,12 +1,12 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules,
kauth, kcompletion, kconfig, kconfigwidgets, kcoreaddons, ki18n, kiconthemes,
kservice, kwidgetsaddons, kwindowsystem, plasma-framework, qtscript, qtwebkit,
qtx11extras
}:
plasmaPackage {
mkDerivation {
name = "libksysguard";
patches = [
./0001-qdiriterator-follow-symlinks.patch

View File

@ -1,9 +1,9 @@
{ plasmaPackage, extra-cmake-modules, qtscript, qtdeclarative
{ mkDerivation, extra-cmake-modules, qtscript, qtdeclarative
, kcoreaddons, ki18n, kdeclarative, kservice, plasma-framework
, krunner
}:
plasmaPackage {
mkDerivation {
name = "milou";
nativeBuildInputs = [
extra-cmake-modules

View File

@ -1,12 +1,12 @@
{
plasmaPackage, kdeWrapper,
mkDerivation, kdeWrapper,
extra-cmake-modules,
frameworkintegration, kcmutils, kcompletion, kconfig, kdecoration, kguiaddons,
ki18n, kwidgetsaddons, kservice, kwayland, kwindowsystem, qtx11extras
}:
let
unwrapped = plasmaPackage {
unwrapped = mkDerivation {
name = "oxygen";
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [

View File

@ -1,5 +1,5 @@
{
plasmaPackage, lib, copyPathsToStore,
mkDerivation, lib, copyPathsToStore,
extra-cmake-modules, kdoctools,
attica, baloo, boost, fontconfig, ibus, kactivities, kactivities-stats, kauth,
kcmutils, kdbusaddons, kdeclarative, kded, kdelibs4support, kemoticons,
@ -12,7 +12,7 @@
utillinux
}:
plasmaPackage rec {
mkDerivation rec {
name = "plasma-desktop";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [

View File

@ -1,11 +1,11 @@
{ plasmaPackage, extra-cmake-modules
{ mkDerivation, extra-cmake-modules
, breeze-qt5, kconfig, kconfigwidgets, kiconthemes, kio, kwayland
, libXcursor
}:
# TODO: install Noto Sans and Oxygen Mono fonts with plasma-integration
plasmaPackage {
mkDerivation {
name = "plasma-integration";
nativeBuildInputs = [
extra-cmake-modules

View File

@ -1,4 +1,4 @@
{ plasmaPackage, substituteAll, extra-cmake-modules, kdoctools
{ mkDerivation, substituteAll, extra-cmake-modules, kdoctools
, kcompletion, kconfigwidgets, kcoreaddons, kdbusaddons, kdeclarative
, kdelibs4support, ki18n, kiconthemes, kinit, kio, kitemviews
, knotifications, kservice, kwallet, kwidgetsaddons, kwindowsystem
@ -7,7 +7,7 @@
, qca-qt5, qtdeclarative, solid, openvpn
}:
plasmaPackage {
mkDerivation {
name = "plasma-nm";
patches = [
(substituteAll {
@ -27,5 +27,4 @@ plasmaPackage {
mobile_broadband_provider_info modemmanager-qt networkmanager-qt openconnect
qca-qt5 solid
];
enableParallelBuilding = true;
}

View File

@ -1,15 +1,13 @@
{
plasmaPackage,
mkDerivation,
extra-cmake-modules,
gconf, glib, kdoctools, kconfigwidgets, kcoreaddons, kdeclarative, kglobalaccel,
ki18n, libcanberra_gtk3, libpulseaudio, plasma-framework
}:
plasmaPackage {
mkDerivation {
name = "plasma-pa";
nativeBuildInputs = [
extra-cmake-modules kdoctools
];
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [
gconf glib kconfigwidgets kcoreaddons kdeclarative
kglobalaccel ki18n libcanberra_gtk3 libpulseaudio plasma-framework

View File

@ -1,8 +1,8 @@
{ plasmaPackage
{ mkDerivation
, extra-cmake-modules
}:
plasmaPackage {
mkDerivation {
name = "plasma-workspace-wallpapers";
outputs = [ "out" ];
nativeBuildInputs = [

View File

@ -1,5 +1,5 @@
{
plasmaPackage, lib, copyPathsToStore,
mkDerivation, lib, copyPathsToStore,
extra-cmake-modules, kdoctools,
@ -12,7 +12,7 @@
libXcursor, pam, wayland
}:
plasmaPackage {
mkDerivation {
name = "plasma-workspace";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];

View File

@ -1,10 +1,10 @@
{
plasmaPackage, extra-cmake-modules,
mkDerivation, extra-cmake-modules,
kcoreaddons, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, knotifications,
kwidgetsaddons, kwindowsystem, polkit-qt
}:
plasmaPackage {
mkDerivation {
name = "polkit-kde-agent";
nativeBuildInputs = [ extra-cmake-modules ];
propagatedBuildInputs = [

View File

@ -1,10 +1,10 @@
{ plasmaPackage, extra-cmake-modules, kdoctools, bluez-qt, kactivities
{ mkDerivation, extra-cmake-modules, kdoctools, bluez-qt, kactivities
, kauth, kconfig, kdbusaddons, kdelibs4support, kglobalaccel, ki18n
, kidletime, kio, knotifyconfig, kwayland, libkscreen, networkmanager-qt
, plasma-workspace, qtx11extras, solid, udev
}:
plasmaPackage {
mkDerivation {
name = "powerdevil";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [

View File

@ -1,12 +1,12 @@
{
plasmaPackage, extra-cmake-modules, kdoctools, makeQtWrapper,
mkDerivation, extra-cmake-modules, kdoctools, makeQtWrapper,
kcmutils, kconfig, kdbusaddons, khtml, ki18n, kiconthemes, kio, kitemviews,
kservice, kwindowsystem, kxmlgui, qtquickcontrols, qtquickcontrols2
}:
plasmaPackage {
mkDerivation {
name = "systemsettings";
nativeBuildInputs = [ extra-cmake-modules kdoctools makeQtWrapper ];
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
propagatedBuildInputs = [
kcmutils kconfig kdbusaddons khtml ki18n kiconthemes kio kitemviews kservice
kwindowsystem kxmlgui qtquickcontrols qtquickcontrols2