Skip to content

Commit

Permalink
Merge NixOS#33311: meson: set checkPhase in setup hook
Browse files Browse the repository at this point in the history
  • Loading branch information
vcunat committed Jan 7, 2018
2 parents e527eb0 + d75f95d commit 49a45fb
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 21 deletions.
1 change: 0 additions & 1 deletion pkgs/applications/video/gnome-mpv/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
1 change: 0 additions & 1 deletion pkgs/desktops/gnome-3/apps/bijiben/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome-3/apps/gnome-clocks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome-3/core/gnome-dictionary/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome-3/core/gnome-font-viewer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 ];

Expand Down
3 changes: 0 additions & 3 deletions pkgs/desktops/gnome-3/core/gnome-screenshot/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome-3/core/libgepub/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ stdenv.mkDerivation rec {

doCheck = true;

checkPhase = "meson test";

nativeBuildInputs = [ meson ninja pkgconfig gobjectIntrospection ];
buildInputs = [ glib webkitgtk libsoup libxml2 libarchive ];

Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome-3/core/simple-scan/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ stdenv.mkDerivation rec {

doCheck = true;

checkPhase = "meson test";

meta = with stdenv.lib; {
description = "Simple scanning utility";
longDescription = ''
Expand Down
2 changes: 0 additions & 2 deletions pkgs/desktops/gnome-3/core/totem/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ stdenv.mkDerivation rec {

propagatedBuildInputs = [ gobjectIntrospection python3Packages.pylint python3Packages.pygobject2 ];

checkPhase = "meson test";

patches = [
(fetchurl {
name = "remove-pycompile.patch";
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/libraries/json-glib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 0 additions & 2 deletions pkgs/development/libraries/libinput/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
12 changes: 12 additions & 0 deletions pkgs/development/tools/build-managers/meson/setup-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 49a45fb

Please sign in to comment.