librest_1_0: fix cross

This commit is contained in:
Artturin 2023-03-26 01:17:29 +02:00
parent e8d9eb71f6
commit 928c439ec2

View File

@ -37,6 +37,8 @@ stdenv.mkDerivation rec {
}) })
]; ];
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -64,6 +66,12 @@ stdenv.mkDerivation rec {
# https://gitlab.gnome.org/GNOME/librest/-/merge_requests/19 # https://gitlab.gnome.org/GNOME/librest/-/merge_requests/19
substituteInPlace meson.build \ substituteInPlace meson.build \
--replace "con." "conf." --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 = '' postFixup = ''