gtkgreet: fix cross-compilation (#351481)

This commit is contained in:
Rick van Schijndel 2024-10-27 19:39:44 +01:00 committed by GitHub
commit ae9f64a37b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -24,11 +24,13 @@ stdenv.mkDerivation rec {
sha256 = "sha256-GKBYql0hzqB6uY87SsAqHwf3qLAr7xznMnAjRtP4HS8=";
};
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [
pkg-config
meson
ninja
cmake
scdoc
wrapGAppsHook3
];
@ -36,7 +38,6 @@ stdenv.mkDerivation rec {
gtk3
gtk-layer-shell
json_c
scdoc
librsvg
];
@ -44,6 +45,11 @@ stdenv.mkDerivation rec {
"-Dlayershell=enabled"
];
postPatch = ''
substituteInPlace meson.build \
--replace "dependency('scdoc'," "dependency('scdoc', native:true,"
'';
# G_APPLICATION_FLAGS_NONE is deprecated in GLib 2.73.3+.
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";