Merge pull request #223142 from Artturin/crossfixes6

This commit is contained in:
Artturi 2023-04-06 23:09:56 +03:00 committed by GitHub
commit 06c63bcc53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
13 changed files with 78 additions and 10 deletions

View File

@ -3,6 +3,7 @@
, intltool
, fetchFromGitLab
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, python3
@ -18,7 +19,6 @@
, docbook_xsl
, docbook_xml_dtd_412
, gsettings-desktop-schemas
, callPackage
, unzip
, unicode-character-database
, unihan-database
@ -57,6 +57,7 @@ in stdenv.mkDerivation rec {
sha256 = "sha256-QoHLMq3U/BvpCFKttxLo0qs2xmZ/pCqPjsgq/MMWNbo=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
@ -73,6 +74,8 @@ in stdenv.mkDerivation rec {
libxml2
desktop-file-utils
gobject-introspection
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [

View File

@ -3,6 +3,7 @@
, fetchurl
, gtk3
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gobject-introspection
@ -24,6 +25,7 @@ stdenv.mkDerivation rec {
sha256 = "1QEVuFyHKqwpaTS17nJqP6FWxvWtltJ+Dt0Kpa0XMig=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
@ -32,6 +34,8 @@ stdenv.mkDerivation rec {
gobject-introspection
gtk-doc
docbook-xsl-nons
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [

View File

@ -1,4 +1,4 @@
{ fetchurl, fetchpatch, lib, stdenv, pkg-config, clutter, gtk3, glib, cogl, gnome, gdk-pixbuf }:
{ fetchurl, fetchpatch, lib, stdenv, pkg-config, clutter, gtk3, glib, cogl, gnome, gdk-pixbuf, gobject-introspection }:
stdenv.mkDerivation rec {
pname = "clutter-gst";
@ -21,8 +21,9 @@ stdenv.mkDerivation rec {
})
];
strictDeps = true;
nativeBuildInputs = [ pkg-config glib gobject-introspection ];
propagatedBuildInputs = [ clutter gtk3 glib cogl gdk-pixbuf ];
nativeBuildInputs = [ pkg-config ];
postBuild = "rm -rf $out/share/gtk-doc";

View File

@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkg-config gobject-introspection ];
propagatedBuildInputs = [ glib zlib libgpg-error ];
configureFlags = [ "--enable-introspection=yes" ];
configureFlags = [
"--enable-introspection=yes"
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ];
postPatch = ''
substituteInPlace tests/testsuite.c \
@ -24,6 +26,10 @@ stdenv.mkDerivation rec {
--replace /bin/mkdir mkdir
'';
preConfigure = lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
cp ${if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h} ./iconv-detect.h
'';
nativeCheckInputs = [ gnupg ];
enableParallelBuilding = true;

View File

@ -12,19 +12,32 @@ stdenv.mkDerivation rec {
outputs = [ "out" "dev" ];
buildInputs = [ vala gobject-introspection zlib gpgme libidn2 libunistring ];
nativeBuildInputs = [ pkg-config ];
nativeBuildInputs = [ pkg-config gobject-introspection vala ];
buildInputs = [
zlib
gpgme
libidn2
libunistring
vala # for share/vala/Makefile.vapigen
];
propagatedBuildInputs = [ glib ];
configureFlags = [
"--enable-introspection=yes"
"--enable-vala=yes"
];
] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [ "ac_cv_have_iconv_detect_h=yes" ];
postPatch = ''
substituteInPlace tests/testsuite.c \
--replace /bin/rm rm
'';
preConfigure = ''
PKG_CONFIG_VAPIGEN_VAPIGEN="$(type -p vapigen)"
export PKG_CONFIG_VAPIGEN_VAPIGEN
'' + lib.optionalString (stdenv.buildPlatform != stdenv.hostPlatform) ''
cp ${if stdenv.hostPlatform.isMusl then ./musl-iconv-detect.h else ./iconv-detect.h} ./iconv-detect.h
'';
nativeCheckInputs = [ gnupg ];
doCheck = true;

View File

@ -0,0 +1,6 @@
/* This is an auto-generated header, DO NOT EDIT! */
#define ICONV_ISO_INT_FORMAT "iso-%u-%u"
#define ICONV_ISO_STR_FORMAT "iso-%u-%s"
#define ICONV_SHIFT_JIS "shift-jis"
#define ICONV_10646 "iso-10646"

View File

@ -0,0 +1,6 @@
/* This is an auto-generated header, DO NOT EDIT! */
#define ICONV_ISO_INT_FORMAT "iso-%u-%u"
#define ICONV_ISO_STR_FORMAT "iso-%u-%s"
#define ICONV_SHIFT_JIS "shift-jis"
#define ICONV_10646 "UCS-4BE"

View File

@ -59,6 +59,7 @@ stdenv.mkDerivation (finalAttrs: {
gobject-introspection
vala
gi-docgen
gtk4 # for gtk4-update-icon-cache checked during configure
];
buildInputs = [

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gobject-introspection, vala, gtk-doc, docbook_xsl, glib }:
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, gobject-introspection, vala, gtk-doc, docbook_xsl, glib, mesonEmulatorHook }:
# TODO: Add installed tests once https://gitlab.gnome.org/World/libcloudproviders/issues/4 is fixed
@ -17,7 +17,18 @@ stdenv.mkDerivation rec {
"-Denable-gtk-doc=true"
];
nativeBuildInputs = [ meson ninja pkg-config gobject-introspection vala gtk-doc docbook_xsl ];
strictDeps = true;
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
vala
gtk-doc
docbook_xsl
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [ glib ];

View File

@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
})
];
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
meson
ninja
@ -64,6 +66,12 @@ stdenv.mkDerivation rec {
# https://gitlab.gnome.org/GNOME/librest/-/merge_requests/19
substituteInPlace meson.build \
--replace "con." "conf."
# Run-time dependency gi-docgen found: NO (tried pkgconfig and cmake)
# it should be a build-time dep for build
# TODO: send upstream
substituteInPlace docs/meson.build \
--replace "'gi-docgen', ver" "'gi-docgen', native:true, ver"
'';
postFixup = ''

View File

@ -22,16 +22,17 @@ stdenv.mkDerivation rec {
sha256 = "sKN013HN0IESXzjDq9B5ZXZCMBxxpUPVVeK/IZGSc/A=";
};
strictDeps = true;
nativeBuildInputs = [
pkg-config
libxslt
gobject-introspection
vala
python3
];
buildInputs = [
glibcLocales
python3
];
propagatedBuildInputs = [

View File

@ -1,6 +1,7 @@
{ lib, stdenv
, fetchurl
, meson
, mesonEmulatorHook
, ninja
, amtk
, gnome
@ -24,6 +25,7 @@ stdenv.mkDerivation rec {
sha256 = "XlayBmnQzwX6HWS1jIw0LFkVgSLcUYEA0JPVnfm4cyE=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
@ -31,6 +33,8 @@ stdenv.mkDerivation rec {
pkg-config
gtk-doc
docbook-xsl-nons
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [

View File

@ -2,6 +2,7 @@
, lib
, fetchFromGitLab
, meson
, mesonEmulatorHook
, ninja
, pkg-config
, gobject-introspection
@ -26,6 +27,7 @@ stdenv.mkDerivation rec {
sha256 = "NuxiVVowZ8ilP9rcgapCe9OzFCpoOfZxZiSyjTeOrts=";
};
strictDeps = true;
nativeBuildInputs = [
meson
ninja
@ -34,6 +36,8 @@ stdenv.mkDerivation rec {
vala
gtk-doc
docbook-xsl-nons
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
mesonEmulatorHook
];
buildInputs = [