yambar: fix strictDeps compilation
Yambar uses meson as build system. Its `dependency` function uses pkg-config as
default method for finding the required dependencies.
However, as seen in their code[^1], scdoc is searched with `native` set to
true. According to Meson specs[^2], it directs the search to the _build_ machine
instead of the _host_ one. This parameter is usually needed only when finding a
tool to be used during compilation.
Because of this, `pkg-config` needs to be included at `depsBuildBuild`.
Why? Magic! Sorry, I am not so proficient in cross-compilation issues yet.
[^1] 78f7b60e13/doc/meson.build (L3)
[^2] https://mesonbuild.com/Reference-manual_functions.html#dependency_native
This commit is contained in:
parent
bff3b3c9e1
commit
e9fd5bf913
@ -44,12 +44,15 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
|
|
||||||
outputs = [ "out" "man" ];
|
outputs = [ "out" "man" ];
|
||||||
|
|
||||||
|
depsBuildBuild = [ pkg-config ];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
bison
|
bison
|
||||||
flex
|
flex
|
||||||
meson
|
meson
|
||||||
ninja
|
ninja
|
||||||
pkg-config
|
pkg-config
|
||||||
|
scdoc
|
||||||
wayland-scanner
|
wayland-scanner
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -62,7 +65,6 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
pipewire
|
pipewire
|
||||||
pixman
|
pixman
|
||||||
pulseaudio
|
pulseaudio
|
||||||
scdoc
|
|
||||||
tllist
|
tllist
|
||||||
udev
|
udev
|
||||||
] ++ lib.optionals (waylandSupport) [
|
] ++ lib.optionals (waylandSupport) [
|
||||||
|
Loading…
Reference in New Issue
Block a user