mcg: support cross compilation

This commit is contained in:
Colin 2023-08-13 09:38:57 +00:00
parent 91a6fc32ef
commit 31a700f6a7
1 changed files with 15 additions and 13 deletions

View File

@ -1,16 +1,15 @@
{ stdenv
, lib
, desktop-file-utils
, fetchFromGitLab
, meson
, gettext
, glib
, python3
, gtk3
, desktop-file-utils
, ninja
, python-setup-hook
, wrapGAppsHook
, gobject-introspection
, gtk3
, meson
, ninja
, python3
, wrapGAppsHook
}:
let
# optional deps: avahi, python-keyring
@ -26,20 +25,23 @@ stdenv.mkDerivation rec {
hash = "sha256-awPMXGruCB/2nwfDqYlc0Uu9E6VV1AleEZAw9Xdsbt8=";
};
postPatch = ''
substituteInPlace src/meson.build \
--replace "python.find_installation('python3').full_path()" "'${pythonEnv}/bin/python3'"
'';
nativeBuildInputs = [
gtk3 # for gtk-update-icon-cache
desktop-file-utils # for update-desktop-database
gettext # for msgfmt
glib
# gtk3 # for gtk-update-icon-cache
glib # for glib-compile-resources
gobject-introspection # needed so wrapGAppsHook includes GI_TYPEPATHS for gtk3
meson
ninja
desktop-file-utils # for update-desktop-database
wrapGAppsHook
gobject-introspection # needed so wrapGAppsHook includes GI_TYPEPATHS for gtk3
];
buildInputs = [
pythonEnv
glib
gtk3
];