extra-cmake-modules: separate setup hook from package

This commit is contained in:
Thomas Tuegel
2016-07-29 10:23:18 -05:00
parent 6628c55986
commit 6c79045964
6 changed files with 36 additions and 33 deletions
@@ -1,19 +1,19 @@
{ kdeFramework, lib, copyPathsToStore, cmake, pkgconfig, qttools }:
{ stdenv, lib, copyPathsToStore, src, version, cmake }:
kdeFramework {
name = "extra-cmake-modules";
stdenv.mkDerivation {
name = "extra-cmake-modules-${version}";
inherit src;
patches = copyPathsToStore (lib.readPathsFromFile ./. ./series);
outputs = [ "out" ]; # this package has no runtime components
setupHook = ./setup-hook.sh;
# It is OK to propagate these inputs as long as
# extra-cmake-modules is never a propagated input
# of some other derivation.
propagatedNativeBuildInputs = [ cmake pkgconfig qttools ];
nativeBuildInputs = [ cmake ];
meta = with lib; {
platforms = lib.platforms.linux;
homepage = "http://www.kde.org";
license = licenses.bsd2;
maintainers = [ maintainers.ttuegel ];
};