extra-cmake-modules: Lift Qt dependency
This commit is contained in:
@@ -1,6 +1,20 @@
|
||||
{ makeSetupHook, lib, cmake, ecmNoHooks, pkgconfig, qtbase, qttools }:
|
||||
{ kdeFramework, lib, copyPathsToStore, cmake, pkgconfig }:
|
||||
|
||||
makeSetupHook {
|
||||
deps = lib.chooseDevOutputs [ cmake ecmNoHooks pkgconfig qtbase qttools ];
|
||||
kdeFramework {
|
||||
name = "extra-cmake-modules";
|
||||
|
||||
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
|
||||
|
||||
outputs = [ "out" ]; # this package has no runtime components
|
||||
|
||||
propagatedNativeBuildInputs = [ cmake pkgconfig ];
|
||||
|
||||
setupHook = ./setup-hook.sh;
|
||||
|
||||
meta = with lib; {
|
||||
platforms = lib.platforms.linux;
|
||||
homepage = "http://www.kde.org";
|
||||
license = licenses.bsd2;
|
||||
maintainers = [ maintainers.ttuegel ];
|
||||
};
|
||||
}
|
||||
./setup-hook.sh
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
{ 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 ];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
_ecmSetXdgDirs() {
|
||||
addToSearchPathOnce XDG_DATA_DIRS "$1/share"
|
||||
addToSearchPathOnce XDG_CONFIG_DIRS "$1/etc/xdg"
|
||||
addToSearchPath XDG_DATA_DIRS "$1/share"
|
||||
addToSearchPath XDG_CONFIG_DIRS "$1/etc/xdg"
|
||||
}
|
||||
|
||||
envHooks+=(_ecmSetXdgDirs)
|
||||
|
||||
Reference in New Issue
Block a user