From 2937cbc67a8484f232325b794b03264db65f707e Mon Sep 17 00:00:00 2001 From: Colin Date: Sat, 25 Feb 2023 01:29:21 +0000 Subject: [PATCH] cross compilation: fix xapian to not use `#!/bin/sh` --- hosts/common/cross.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/common/cross.nix b/hosts/common/cross.nix index 21fa140c..ea4b38cc 100644 --- a/hosts/common/cross.nix +++ b/hosts/common/cross.nix @@ -970,6 +970,11 @@ in # fixes "perl: command not found" nativeBuildInputs = orig.nativeBuildInputs ++ [ next.perl ]; }); + xapian = prev.xapian.overrideAttrs (upstream: { + # the output has #!/bin/sh scripts. + # - shebangs get re-written on native build, but not cross build + buildInputs = upstream.buildInputs ++ [ next.bash ]; + }); xdg-desktop-portal-gtk = prev.xdg-desktop-portal-gtk.overrideAttrs (orig: { # fixes "No package 'xdg-desktop-portal' found" buildInputs = orig.buildInputs ++ [ next.xdg-desktop-portal ];