kdeApps_15_08: don't override mkDerivation

Provide a globally unique name (kdeApp) instead of using attribute paths
as namespaces and locally overloading the mkDerivation name.
This commit is contained in:
Thomas Tuegel 2015-09-29 16:54:51 -05:00
parent 92e98c2b03
commit cf5ed04f49
19 changed files with 39 additions and 40 deletions

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -16,7 +16,7 @@
, libarchive
}:
mkDerivation {
kdeApp {
name = "ark";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -11,7 +11,7 @@
, kdelibs4support
}:
mkDerivation {
kdeApp {
name = "baloo-widgets";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -21,13 +21,12 @@ let
srcs = import ./srcs.nix { inherit (pkgs) fetchurl; inherit mirror; };
mirror = "mirror://kde";
mkDerivation = args:
kdeApp = 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;
@ -64,6 +63,6 @@ let
print-manager = callPackage ./print-manager.nix {};
};
newScope = scope: pkgs.kf513.newScope ({ inherit mkDerivation; } // scope);
newScope = scope: pkgs.kf513.newScope ({ inherit kdeApp; } // scope);
in lib.makeScope newScope packages

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -9,7 +9,7 @@
, dolphin
}:
mkDerivation {
kdeApp {
name = "dolphin-plugins";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -26,7 +26,7 @@
, kdelibs4support
}:
mkDerivation {
kdeApp {
name = "dolphin";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -8,7 +8,7 @@
, ffmpeg
}:
mkDerivation {
kdeApp {
name = "ffmpegthumbs";
nativeBuildInputs = [
automoc4

View file

@ -1,11 +1,11 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, boost
, gpgme
}:
mkDerivation {
kdeApp {
name = "gpgmepp";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -13,7 +13,7 @@
, qtx11extras
}:
mkDerivation {
kdeApp {
name = "gwenview";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -26,7 +26,7 @@
, libgit2
}:
mkDerivation {
kdeApp {
name = "kate";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -9,7 +9,7 @@
, libkdcraw
}:
mkDerivation {
kdeApp {
name = "kdegraphics-thumbnailers";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation, attica, attr, automoc4, avahi, bison, cmake
{ kdeApp, attica, attr, automoc4, avahi, bison, cmake
, docbook_xml_dtd_42, docbook_xsl, flex, giflib, herqq, ilmbase
, libdbusmenu_qt, libjpeg, libxml2, libxslt, perl, phonon, pkgconfig
, polkit_qt4, qca2, qt4, shared_desktop_ontologies, shared_mime_info
@ -6,7 +6,7 @@
, lib
}:
mkDerivation {
kdeApp {
name = "kdelibs";
buildInputs = [

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -10,7 +10,7 @@
, kdepimlibs
}:
mkDerivation {
kdeApp {
name = "kgpg";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, kdoctools
@ -25,7 +25,7 @@
, kxmlgui
}:
mkDerivation {
kdeApp {
name = "konsole";
nativeBuildInputs = [
extra-cmake-modules

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -9,7 +9,7 @@
, libXfixes
}:
mkDerivation {
kdeApp {
name = "ksnapshot";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -8,7 +8,7 @@
, kdelibs
}:
mkDerivation {
kdeApp {
name = "libkdcraw";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -8,7 +8,7 @@
, kdelibs
}:
mkDerivation {
kdeApp {
name = "libkexiv2";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -7,7 +7,7 @@
, kdelibs
}:
mkDerivation {
kdeApp {
name = "libkipi";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, automoc4
, cmake
@ -15,7 +15,7 @@
, ebook_tools
}:
mkDerivation {
kdeApp {
name = "okular";
nativeBuildInputs = [
automoc4

View file

@ -1,4 +1,4 @@
{ mkDerivation
{ kdeApp
, lib
, extra-cmake-modules
, qtdeclarative
@ -17,7 +17,7 @@
, kitemviews
}:
mkDerivation {
kdeApp {
name = "print-manager";
nativeBuildInputs = [
extra-cmake-modules