mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 18:03:04 +00:00
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:
parent
805e945e82
commit
96054245b5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user