Merge pull request #63493 from jtojnar/meson-auto-features

meson: enable auto_features by default
This commit is contained in:
worldofpeace 2019-06-25 12:48:46 -04:00 committed by GitHub
commit 94e8afc254
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 39 additions and 21 deletions

View File

@ -15,6 +15,12 @@ stdenv.mkDerivation rec {
buildInputs = [ glib ncurses mpd_clientlib boost ]; buildInputs = [ glib ncurses mpd_clientlib boost ];
nativeBuildInputs = [ meson ninja pkgconfig gettext ]; nativeBuildInputs = [ meson ninja pkgconfig gettext ];
mesonFlags = [
"-Dlirc=disabled"
"-Dregex=disabled"
"-Ddocumentation=disabled"
];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Curses-based interface for MPD (music player daemon)"; description = "Curses-based interface for MPD (music player daemon)";
homepage = https://www.musicpd.org/clients/ncmpc/; homepage = https://www.musicpd.org/clients/ncmpc/;

View File

@ -1,19 +1,34 @@
{ stdenv, fetchurl, meson, ninja, pkgconfig, glib, gtk, gettext, libiconv, libintl { stdenv, fetchurl, meson, ninja, pkgconfig, check, dbus, xvfb_run, glib, gtk, gettext, libiconv, json_c, libintl
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "girara-${version}"; pname = "girara";
version = "0.3.2"; version = "0.3.2";
outputs = [ "out" "dev" ];
src = fetchurl { src = fetchurl {
url = "https://pwmt.org/projects/girara/download/${name}.tar.xz"; url = "https://pwmt.org/projects/girara/download/${pname}-${version}.tar.xz";
sha256 = "1kc6n1mxjxa7wvwnqy94qfg8l9jvx9qrvrr2kc7m4g0z20x3a00p"; sha256 = "1kc6n1mxjxa7wvwnqy94qfg8l9jvx9qrvrr2kc7m4g0z20x3a00p";
}; };
nativeBuildInputs = [ meson ninja pkgconfig gettext ]; nativeBuildInputs = [ meson ninja pkgconfig gettext check dbus xvfb_run ];
buildInputs = [ libintl libiconv ]; buildInputs = [ libintl libiconv json_c ];
propagatedBuildInputs = [ glib gtk ]; propagatedBuildInputs = [ glib gtk ];
doCheck = true;
mesonFlags = [
"-Ddocs=disabled" # docs do not seem to be installed
];
checkPhase = ''
export NO_AT_BRIDGE=1
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
meson test --print-errorlogs
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://pwmt.org/projects/girara/; homepage = https://pwmt.org/projects/girara/;
description = "User interface library"; description = "User interface library";

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig { stdenv, fetchurl, meson, ninja, wrapGAppsHook, pkgconfig
, appstream-glib, desktop-file-utils, python3 , appstream-glib, desktop-file-utils, python3
, gtk, girara, gettext, libxml2 , gtk, girara, gettext, libxml2, check
, sqlite, glib, texlive, libintl, libseccomp , sqlite, glib, texlive, libintl, libseccomp
, file, librsvg , file, librsvg
, gtk-mac-integration, synctexSupport ? true , gtk-mac-integration, synctexSupport ? true
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ nativeBuildInputs = [
meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx meson ninja pkgconfig desktop-file-utils python3.pkgs.sphinx
gettext wrapGAppsHook libxml2 gettext wrapGAppsHook libxml2 check
] ++ optional stdenv.isLinux appstream-glib; ] ++ optional stdenv.isLinux appstream-glib;
buildInputs = [ buildInputs = [
@ -42,6 +42,8 @@ stdenv.mkDerivation rec {
++ optional stdenv.isLinux libseccomp ++ optional stdenv.isLinux libseccomp
++ optional stdenv.isDarwin gtk-mac-integration; ++ optional stdenv.isDarwin gtk-mac-integration;
doCheck = true;
meta = { meta = {
homepage = https://pwmt.org/projects/zathura/; homepage = https://pwmt.org/projects/zathura/;
description = "A core component for zathura PDF viewer"; description = "A core component for zathura PDF viewer";

View File

@ -104,7 +104,6 @@ stdenv.mkDerivation rec {
gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]); gstreamer gst-plugins-base gst-plugins-good gst-plugins-bad gst-plugins-ugly gst-libav ]);
mesonFlags = [ mesonFlags = [
"-Dauto_features=enabled"
"-Dnautilus=false" "-Dnautilus=false"
"-Dps=enabled" "-Dps=enabled"
"-Dgtk_doc=false" "-Dgtk_doc=false"

View File

@ -1,6 +1,6 @@
{ stdenv, fetchurl, substituteAll, pkgconfig, libxslt, ninja, libX11, gnome3, gtk3, glib { stdenv, fetchurl, substituteAll, pkgconfig, libxslt, ninja, libX11, gnome3, gtk3, glib
, gettext, libxml2, xkeyboard_config, isocodes, meson, wayland , gettext, libxml2, xkeyboard_config, isocodes, meson, wayland
, libseccomp, bubblewrap, gobject-introspection, gtk-doc, docbook_xsl, gsettings-desktop-schemas }: , libseccomp, systemd, bubblewrap, gobject-introspection, gtk-doc, docbook_xsl, gsettings-desktop-schemas }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gnome-desktop-${version}"; name = "gnome-desktop-${version}";
@ -13,15 +13,13 @@ stdenv.mkDerivation rec {
sha256 = "0bidx4626x7k2myv6f64qv4fzmxv8v475wibiz19kj8hjfr737q9"; sha256 = "0bidx4626x7k2myv6f64qv4fzmxv8v475wibiz19kj8hjfr737q9";
}; };
enableParallelBuilding = true;
nativeBuildInputs = [ nativeBuildInputs = [
pkgconfig meson ninja gettext libxslt libxml2 gobject-introspection pkgconfig meson ninja gettext libxslt libxml2 gobject-introspection
gtk-doc docbook_xsl gtk-doc docbook_xsl
]; ];
buildInputs = [ buildInputs = [
libX11 bubblewrap xkeyboard_config isocodes wayland libX11 bubblewrap xkeyboard_config isocodes wayland
gtk3 glib libseccomp gtk3 glib libseccomp systemd
]; ];
propagatedBuildInputs = [ gsettings-desktop-schemas ]; propagatedBuildInputs = [ gsettings-desktop-schemas ];

View File

@ -104,7 +104,6 @@ stdenv.mkDerivation rec {
"-Dfunctional_tests=false" "-Dfunctional_tests=false"
"-Ddbus_services=${placeholder "out"}/share/dbus-1/services" "-Ddbus_services=${placeholder "out"}/share/dbus-1/services"
"-Dsystemd_user_services=${placeholder "out"}/lib/systemd/user" "-Dsystemd_user_services=${placeholder "out"}/lib/systemd/user"
"-Dauto_features=enabled"
]; ];
patches = [ patches = [

View File

@ -109,7 +109,6 @@ stdenv.mkDerivation rec {
PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions"; PKG_CONFIG_POLKIT_GOBJECT_1_POLICYDIR = "${placeholder "out"}/share/polkit-1/actions";
mesonFlags = [ mesonFlags = [
"-Dauto_features=enabled"
"-Dcelt051=disabled" "-Dcelt051=disabled"
"-Dpulse=disabled" # is deprecated upstream "-Dpulse=disabled" # is deprecated upstream
]; ];

View File

@ -77,7 +77,6 @@ stdenv.mkDerivation rec {
NIX_CFLAGS_COMPILE = "-fno-stack-protector"; NIX_CFLAGS_COMPILE = "-fno-stack-protector";
mesonFlags = [ mesonFlags = [
"-Dauto_features=enabled"
"-Dgstreamer=1.0" "-Dgstreamer=1.0"
"-Dcelt051=disabled" "-Dcelt051=disabled"
]; ];

View File

@ -1,7 +1,7 @@
{ stdenv, fetchFromGitHub, meson, ninja, pkgconfig { stdenv, fetchFromGitHub, meson, ninja, pkgconfig
, wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman , wayland, libGL, wayland-protocols, libinput, libxkbcommon, pixman
, xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa , xcbutilwm, libX11, libcap, xcbutilimage, xcbutilerrors, mesa
, libpng, ffmpeg_4 , libpng, ffmpeg_4, freerdp
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
buildInputs = [ buildInputs = [
wayland libGL wayland-protocols libinput libxkbcommon pixman wayland libGL wayland-protocols libinput libxkbcommon pixman
xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa xcbutilwm libX11 libcap xcbutilimage xcbutilerrors mesa
libpng ffmpeg_4 libpng ffmpeg_4 freerdp
]; ];
mesonFlags = [ mesonFlags = [

View File

@ -17,10 +17,11 @@ mesonConfigurePhase() {
--includedir=${!outputInclude}/include \ --includedir=${!outputInclude}/include \
--mandir=${!outputMan}/share/man --infodir=${!outputInfo}/share/info \ --mandir=${!outputMan}/share/man --infodir=${!outputInfo}/share/info \
--localedir=${!outputLib}/share/locale \ --localedir=${!outputLib}/share/locale \
-Dauto_features=disabled \ -Dauto_features=${mesonAutoFeatures:-enabled} \
-Dwrap_mode=${mesonWrapMode:-nodownload} \
$mesonFlags" $mesonFlags"
mesonFlags="${crossMesonFlags+$crossMesonFlags }--buildtype=${mesonBuildType:-release} $mesonFlags" mesonFlags="${crossMesonFlags+$crossMesonFlags }--buildtype=${mesonBuildType:-plain} $mesonFlags"
echo "meson flags: $mesonFlags ${mesonFlagsArray[@]}" echo "meson flags: $mesonFlags ${mesonFlagsArray[@]}"

View File

@ -1,4 +1,4 @@
{ stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkgconfig, wayland-protocols }: { stdenv, fetchFromGitHub, cairo, libjpeg, meson, ninja, wayland, pkgconfig, scdoc, wayland-protocols }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "grim"; pname = "grim";
@ -15,6 +15,7 @@ stdenv.mkDerivation rec {
meson meson
ninja ninja
pkgconfig pkgconfig
scdoc
]; ];
buildInputs = [ buildInputs = [

View File

@ -14,7 +14,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ meson ninja pkgconfig wayland-protocols ]; nativeBuildInputs = [ meson ninja pkgconfig wayland-protocols ];
buildInputs = [ wayland ]; buildInputs = [ wayland ];
mesonFlags = [ "-Dauto_features=enabled" ];
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Command-line copy/paste utilities for Wayland"; description = "Command-line copy/paste utilities for Wayland";