forked from mirrors/nixpkgs
Merge #33311: meson: set checkPhase in setup hook
This commit is contained in:
commit
49a45fb51f
|
@ -26,7 +26,6 @@ stdenv.mkDerivation rec {
|
|||
'';
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = "meson test";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple GTK+ frontend for the mpv video player";
|
||||
|
|
|
@ -8,7 +8,6 @@ stdenv.mkDerivation rec {
|
|||
inherit (import ./src.nix fetchurl) name src;
|
||||
|
||||
doCheck = true;
|
||||
checkPhase = "meson test";
|
||||
|
||||
patches = [
|
||||
./no-update-icon-cache.patch
|
||||
|
|
|
@ -18,8 +18,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
prePatch = "patchShebangs build-aux/";
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://wiki.gnome.org/Apps/Clocks;
|
||||
description = "Clock application designed for GNOME 3";
|
||||
|
|
|
@ -14,8 +14,6 @@ stdenv.mkDerivation rec {
|
|||
desktop_file_utils appstream-glib libxslt docbook_xsl docbook_xml_dtd_43];
|
||||
buildInputs = [ gtk glib gnome3.gsettings_desktop_schemas ];
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://wiki.gnome.org/Apps/Dictionary;
|
||||
description = "Dictionary is the GNOME application to look up definitions";
|
||||
|
|
|
@ -7,8 +7,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkgconfig gettext wrapGAppsHook libxml2 ];
|
||||
buildInputs = [ gtk3 glib gnome3.gnome_desktop gnome3.defaultIconTheme ];
|
||||
|
||||
|
|
|
@ -7,9 +7,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
|
||||
postPatch = ''
|
||||
chmod +x build-aux/postinstall.py # patchShebangs requires executable file
|
||||
patchShebangs build-aux/postinstall.py
|
||||
|
|
|
@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection ];
|
||||
buildInputs = [ glib webkitgtk libsoup libxml2 libarchive ];
|
||||
|
||||
|
|
|
@ -39,8 +39,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Simple scanning utility";
|
||||
longDescription = ''
|
||||
|
|
|
@ -27,8 +27,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
propagatedBuildInputs = [ gobjectIntrospection python3Packages.pylint python3Packages.pygobject2 ];
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
patches = [
|
||||
(fetchurl {
|
||||
name = "remove-pycompile.patch";
|
||||
|
|
|
@ -27,8 +27,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = true;
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://live.gnome.org/JsonGlib;
|
||||
description = "A library providing (de)serialization support for the JavaScript Object Notation (JSON) format";
|
||||
|
|
|
@ -50,8 +50,6 @@ stdenv.mkDerivation rec {
|
|||
|
||||
doCheck = testsSupport;
|
||||
|
||||
checkPhase = "meson test";
|
||||
|
||||
meta = {
|
||||
description = "Handles input devices in Wayland compositors and provides a generic X.Org input driver";
|
||||
homepage = http://www.freedesktop.org/wiki/Software/libinput;
|
||||
|
|
|
@ -25,3 +25,15 @@ if [ -z "$dontUseMesonConfigure" -a -z "$configurePhase" ]; then
|
|||
setOutputFlags=
|
||||
configurePhase=mesonConfigurePhase
|
||||
fi
|
||||
|
||||
mesonCheckPhase() {
|
||||
runHook preCheck
|
||||
|
||||
meson test
|
||||
|
||||
runHook postCheck
|
||||
}
|
||||
|
||||
if [ -z "$dontUseMesonCheck" -a -z "$checkPhase" ]; then
|
||||
checkPhase=mesonCheckPhase
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue