Clean up KDE Frameworks

This commit is contained in:
Thomas Tuegel 2017-02-25 13:54:09 -06:00
parent c650dc8bd7
commit a33ab04d1b
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59
4 changed files with 24 additions and 28 deletions

View File

@ -78,16 +78,8 @@ let
baloo = callPackage ./baloo.nix {}; baloo = callPackage ./baloo.nix {};
bluez-qt = callPackage ./bluez-qt.nix {}; bluez-qt = callPackage ./bluez-qt.nix {};
breeze-icons = callPackage ./breeze-icons.nix {}; breeze-icons = callPackage ./breeze-icons.nix {};
# FIXME: this collides with the "ecm" package. ecm = callPackage ./extra-cmake-modules {};
ecm = ecmNoHooks = callPackage ./extra-cmake-modules/no-hooks.nix {};
let drv = { cmake, ecmNoHooks, pkgconfig, qtbase, qttools }:
makeSetupHook
{ deps = lib.chooseDevOutputs [ cmake ecmNoHooks pkgconfig qtbase qttools ]; }
./setup-hook.sh;
in callPackage drv {};
ecmNoHooks = callPackage ./extra-cmake-modules {
inherit (srcs.extra-cmake-modules) src version;
};
frameworkintegration = callPackage ./frameworkintegration.nix {}; frameworkintegration = callPackage ./frameworkintegration.nix {};
kactivities = callPackage ./kactivities.nix {}; kactivities = callPackage ./kactivities.nix {};
kactivities-stats = callPackage ./kactivities-stats.nix {}; kactivities-stats = callPackage ./kactivities-stats.nix {};

View File

@ -1,20 +1,6 @@
{ stdenv, lib, copyPathsToStore, src, version, cmake }: { makeSetupHook, lib, cmake, ecmNoHooks, pkgconfig, qtbase, qttools }:
stdenv.mkDerivation { makeSetupHook {
name = "extra-cmake-modules-${version}"; deps = lib.chooseDevOutputs [ cmake ecmNoHooks pkgconfig qtbase qttools ];
inherit src;
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
outputs = [ "out" ]; # this package has no runtime components
nativeBuildInputs = [ cmake ];
meta = with lib; {
platforms = lib.platforms.linux;
homepage = "http://www.kde.org";
license = licenses.bsd2;
maintainers = [ maintainers.ttuegel ];
};
} }
./setup-hook.sh

View File

@ -0,0 +1,18 @@
{ kdeFramework, lib, copyPathsToStore, cmake }:
kdeFramework {
name = "extra-cmake-modules";
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
outputs = [ "out" ]; # this package has no runtime components
nativeBuildInputs = [ cmake ];
meta = with lib; {
platforms = lib.platforms.linux;
homepage = "http://www.kde.org";
license = licenses.bsd2;
maintainers = [ maintainers.ttuegel ];
};
}