3
0
Fork 0
forked from mirrors/nixpkgs

foot: fix cross compilation

* needs PKG_CONFIG_FOR_BUILD

* in the non-native case we need wayland-scanner (build) and
  wayland-protocols (host) separately

* ar needs targetPrefix as well
This commit is contained in:
sternenseemann 2021-07-08 14:13:30 +02:00 committed by sterni
parent 805e945e82
commit 96054245b5

View file

@ -15,6 +15,7 @@
, scdoc
, tllist
, wayland-protocols
, wayland-scanner
, pkg-config
, utf8proc
, allowPgo ? true
@ -77,7 +78,7 @@ let
}."${compilerName}";
# ar with lto support
ar = {
ar = stdenv.cc.bintools.targetPrefix + {
"clang" = "llvm-ar";
"gcc" = "gcc-ar";
"unknown" = "ar";
@ -97,19 +98,24 @@ stdenv.mkDerivation rec {
sha256 = "0yrz7n0wls8g8w7ja934icwxmng3sxh70x87qmzc9c9cb1wyd989";
};
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
wayland-scanner
meson
ninja
ncurses
scdoc
tllist
wayland-protocols
pkg-config
] ++ lib.optionals (compilerName == "clang") [
stdenv.cc.cc.libllvm.out
];
buildInputs = [
tllist
wayland-protocols
fontconfig
freetype
pixman