From 0ad6b2bc1bd8a51cbe92dcf49a0760135439f49f Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 30 Sep 2023 23:42:01 +0000 Subject: [PATCH] fractal-nixified: get gst-plugin-gtk4 to cross build --- pkgs/additional/fractal-nixified/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/additional/fractal-nixified/default.nix b/pkgs/additional/fractal-nixified/default.nix index 7c25b288..45f37811 100644 --- a/pkgs/additional/fractal-nixified/default.nix +++ b/pkgs/additional/fractal-nixified/default.nix @@ -88,8 +88,11 @@ let gtk4 glib ]; - verbose = true; CARGO_PKG_REPOSITORY = "nixpkgs"; + # it wants `type = [ "cdylib" "rlib" ]` but that causes a link format failure on cross compilation + # (tries to link aarch64 gstgtk4.o file with the x86_64 linker). + # default if unspecified it `type = [ "lib" ]` + type = [ "rlib" ]; }; libadwaita-sys = attrs: attrs // { nativeBuildInputs = [ pkg-config ];