gsound: support cross-compilation

Disables vala and introspection, making it less usable in general.
It helps moving forward and fixing other packages, though.
This commit is contained in:
Rick van Schijndel 2021-12-22 20:10:06 +01:00
parent a2aaaee3d9
commit 2892b0c60c

View file

@ -9,9 +9,16 @@ stdenv.mkDerivation rec {
sha256 = "06l80xgykj7x1kqkjvcq06pwj2rmca458zvs053qc55x3sg06bfa";
};
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ pkg-config meson ninja gobject-introspection libtool vala ];
buildInputs = [ glib libcanberra ];
mesonFlags = [
"-Dintrospection=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
"-Denable_vala=${lib.boolToString (stdenv.buildPlatform == stdenv.hostPlatform)}"
];
passthru = {
updateScript = gnome.updateScript {
packageName = pname;