1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

plasma54: don't override mkDerivation

Provides a globally unique name (plasmaPackage) instead of using
attribute paths as namespaces and locally overloading the mkDerivation
name.
This commit is contained in:
Thomas Tuegel 2015-09-29 16:58:59 -05:00
parent 5ba93bd4c3
commit 8e9fca18e3
33 changed files with 67 additions and 68 deletions

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, bluez-qt
, kcoreaddons
@ -15,7 +15,7 @@
, shared_mime_info
}:
mkDerivation {
plasmaPackage {
name = "bluedevil";
nativeBuildInputs = [ extra-cmake-modules shared_mime_info ];
buildInputs = [

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, automoc4
, cmake
, perl
@ -8,7 +8,7 @@
, xproto
}:
mkDerivation {
plasmaPackage {
name = "breeze-qt4";
sname = "breeze";
buildInputs = [

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, frameworkintegration
, kcmutils
@ -11,7 +11,7 @@
, qtx11extras
}:
mkDerivation {
plasmaPackage {
name = "breeze-qt5";
sname = "breeze";
nativeBuildInputs = [

View file

@ -17,13 +17,12 @@ let
srcs = import ./srcs.nix { inherit (pkgs) fetchurl; inherit mirror; };
mirror = "mirror://kde";
mkDerivation = args:
plasmaPackage = args:
let
inherit (stdenv) mkDerivation;
inherit (args) name;
sname = args.sname or name;
inherit (srcs."${sname}") src version;
in mkDerivation (args // {
in stdenv.mkDerivation (args // {
name = "${name}-${version}";
inherit src;
@ -82,6 +81,6 @@ let
systemsettings = callPackage ./systemsettings.nix {};
};
newScope = scope: kdeApps.newScope ({ inherit mkDerivation; } // scope);
newScope = scope: kdeApps.newScope ({ inherit plasmaPackage; } // scope);
in lib.makeScope newScope addPackages

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kcmutils
, kconfig
@ -12,7 +12,7 @@
, qtx11extras
}:
mkDerivation {
plasmaPackage {
name = "kde-cli-tools";
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
buildInputs = [

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, glib
, gtk2
@ -12,7 +12,7 @@
, knewstuff
}:
mkDerivation {
plasmaPackage {
name = "kde-gtk-config";
nativeBuildInputs = [ extra-cmake-modules ];
buildInputs = [

View file

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

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, ibus
@ -19,7 +19,7 @@
, qtx11extras
}:
mkDerivation {
plasmaPackage {
name = "kdeplasma-addons";
nativeBuildInputs = [
extra-cmake-modules

View file

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

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kconfig
@ -12,7 +12,7 @@
, kservice
}:
mkDerivation {
plasmaPackage {
name = "khelpcenter";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kcmutils
@ -13,7 +13,7 @@
, qtx11extras
}:
mkDerivation {
plasmaPackage {
name = "khotkeys";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kcmutils
@ -21,7 +21,7 @@
, solid
}:
mkDerivation {
plasmaPackage {
name = "kinfocenter";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, ki18n
@ -10,7 +10,7 @@
, kdelibs4support
}:
mkDerivation {
plasmaPackage {
name = "kmenuedit";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kconfig
, kconfigwidgets
@ -11,7 +11,7 @@
, qtdeclarative
}:
mkDerivation {
plasmaPackage {
name = "kscreen";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kcoreaddons
@ -7,7 +7,7 @@
, kwidgetsaddons
}:
mkDerivation {
plasmaPackage {
name = "ksshaskpass";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kconfig
@ -11,7 +11,7 @@
, libksysguard
}:
mkDerivation {
plasmaPackage {
name = "ksysguard";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,9 +1,9 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, wayland
}:
mkDerivation {
plasmaPackage {
name = "kwayland";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, epoxy
@ -36,7 +36,7 @@
, xcb-util-cursor
}:
mkDerivation {
plasmaPackage {
name = "kwin";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kcoreaddons
, ki18n
@ -7,7 +7,7 @@
, kdbusaddons
}:
mkDerivation {
plasmaPackage {
name = "kwrited";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,10 +1,10 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, libXrandr
, qtx11extras
}:
mkDerivation {
plasmaPackage {
name = "libkscreen";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kauth
, kcompletion
@ -16,7 +16,7 @@
, kiconthemes
}:
mkDerivation {
plasmaPackage {
name = "libksysguard";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, qtscript
, qtdeclarative
@ -10,7 +10,7 @@
, krunner
}:
mkDerivation {
plasmaPackage {
name = "milou";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,9 +1,9 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, fontforge
}:
mkDerivation {
plasmaPackage {
name = "oxygen-fonts";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, ki18n
, kcmutils
@ -13,7 +13,7 @@
, qtx11extras
}:
mkDerivation {
plasmaPackage {
name = "oxygen";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, substituteAll
, extra-cmake-modules
, kdoctools
@ -43,7 +43,7 @@
, utillinux
}:
mkDerivation {
plasmaPackage {
name = "plasma-desktop";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, baloo
, kactivities
@ -16,7 +16,7 @@
, taglib
}:
mkDerivation {
plasmaPackage {
name = "plasma-mediacenter";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kcompletion
@ -27,7 +27,7 @@
, solid
}:
mkDerivation {
plasmaPackage {
name = "plasma-nm";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, glib
, kconfigwidgets
@ -10,7 +10,7 @@
, plasma-framework
}:
mkDerivation {
plasmaPackage {
name = "plasma-pa";
nativeBuildInputs = [
extra-cmake-modules

View file

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

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, baloo
@ -53,7 +53,7 @@
, xsetroot
}:
mkDerivation {
plasmaPackage {
name = "plasma-workspace";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, ki18n
, kwindowsystem
@ -12,7 +12,7 @@
, polkitQt
}:
mkDerivation {
plasmaPackage {
name = "polkit-kde-agent";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kactivities
@ -18,7 +18,7 @@
, udev
}:
mkDerivation {
plasmaPackage {
name = "powerdevil";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ plasmaPackage
, extra-cmake-modules
, kdoctools
, kitemviews
@ -14,7 +14,7 @@
, khtml
}:
mkDerivation {
plasmaPackage {
name = "systemsettings";
nativeBuildInputs = [
extra-cmake-modules