Merge pull request #225103 from uninsane/pr/sane/cross-2023-04-06

This commit is contained in:
Artturi 2023-04-08 02:03:16 +03:00 committed by GitHub
commit 01dd363560
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 8 deletions

View File

@ -34,6 +34,10 @@ stdenv.mkDerivation rec {
hash = "sha256-Va/Rm35jqxDlIfQdrpZ41qrW8YzWmm1LWra76AW1xUw=";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
pkg-config
wayland-scanner

View File

@ -11,12 +11,11 @@ stdenv.mkDerivation rec {
patches = [];
nativeBuildInputs = [ autoconf automake ];
buildInputs = [ libtool ];
nativeBuildInputs = [ autoconf automake libtool ];
preConfigure = ''
sh autogen.sh
'';
'';
meta = with lib; {
homepage = "https://libhx.sourceforge.net/";

View File

@ -24,7 +24,8 @@ stdenv.mkDerivation rec {
pname = "libchamplain";
version = "0.12.21";
outputs = [ "out" "dev" "devdoc" ];
outputs = [ "out" "dev" ]
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
@ -37,6 +38,7 @@ stdenv.mkDerivation rec {
pkg-config
gobject-introspection
vala
] ++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
gtk-doc
docbook_xsl
docbook_xml_dtd_412
@ -55,7 +57,7 @@ stdenv.mkDerivation rec {
];
mesonFlags = [
"-Dgtk_doc=true"
(lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform))
"-Dvapi=true"
(lib.mesonBool "libsoup3" withLibsoup3)
];

View File

@ -43,6 +43,7 @@ stdenv.mkDerivation rec {
docbook-xsl-nons
gobject-introspection
vala
gnutls
gtk-doc
python3
];

View File

@ -26,6 +26,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [
pkg-config
gobject-introspection
] ++ lib.optionals (stdenv.hostPlatform == stdenv.buildPlatform) [
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_412
@ -38,7 +39,7 @@ stdenv.mkDerivation rec {
];
configureFlags = [
"--enable-gtk-doc"
(lib.enableFeature (stdenv.hostPlatform == stdenv.buildPlatform) "gtk-doc")
# Remove when https://gitlab.gnome.org/GNOME/librest/merge_requests/2 is merged.
"--with-ca-certificates=/etc/ssl/certs/ca-certificates.crt"
];

View File

@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
catch2_3
];
doCheck = true;
doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform;
meta = {
description = "Rapid fuzzy string matching in C++ using the Levenshtein Distance";

View File

@ -15,7 +15,14 @@ stdenv.mkDerivation rec {
sha256 = "sha256-l0ncCMsStaeFACRU3Bt6F1zyiOTGY6wOHewA4AD58Ww=";
};
nativeBuildInputs = [ pkg-config makeWrapper autoreconfHook autoconf-archive which ];
nativeBuildInputs = [
autoconf-archive
autoreconfHook
glib
makeWrapper
pkg-config
which
];
buildInputs = [ tpm2-tss glib dbus ];
nativeCheckInputs = [ cmocka ];