meson/ninja: add setup hooks (#28444)

* Add setupHook for meson/ninja build

* libhttpseverywhere: Use meson/ninja setupHooks

* jamomacore: Remove superfluous ninja buildInput

* Remove obsolete ninja buildPhases

These are all handled by ninja's setup hook.

* lean2, xcbuild: fix build with ninja setup hook

Ninja is a runtime dependency here. However, cmake can generate Ninja
build files as well to satisfy the setup hook.

* qtwebengine: fix build with ninja setup hook
This commit is contained in:
Lukas Werling
2017-08-27 19:42:21 +02:00
committed by Robin Gloster
parent cf7be87348
commit f0a1ab78b4
12 changed files with 79 additions and 23 deletions
@@ -15,18 +15,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ gnome3.vala valadoc gobjectIntrospection meson ninja pkgconfig ];
buildInputs = [ glib gnome3.libgee libxml2 json_glib libsoup libarchive ];
configurePhase = ''
mkdir build
cd build
meson --prefix "$out" ..
'';
buildPhase = ''
ninja
'';
installPhase = "ninja install";
doCheck = true;
checkPhase = "./httpseverywhere_test";