diff options
author | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-02 22:55:43 -0300 |
---|---|---|
committer | Anderson Torres <torres.anderson.85@protonmail.com> | 2023-08-03 12:29:50 +0000 |
commit | e9fd5bf91302e22970be947f67bbecd5f749af48 (patch) | |
tree | 8915b83379f3e6d35cedbc99e5e625aa78dfa313 | |
parent | bff3b3c9e17a4163f583490a5fbefff8b68a6c49 (diff) |
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] https://codeberg.org/dnkl/yambar/src/commit/78f7b60e1308d9f6c879b5cbae2dadba4fa88762/doc/meson.build#L3 [^2] https://mesonbuild.com/Reference-manual_functions.html#dependency_native
-rw-r--r-- | pkgs/applications/misc/yambar/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/misc/yambar/default.nix b/pkgs/applications/misc/yambar/default.nix index 2cb4cad91d4b7..7d974bf87fd4e 100644 --- a/pkgs/applications/misc/yambar/default.nix +++ b/pkgs/applications/misc/yambar/default.nix @@ -44,12 +44,15 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "man" ]; + depsBuildBuild = [ pkg-config ]; + nativeBuildInputs = [ bison flex meson ninja pkg-config + scdoc wayland-scanner ]; @@ -62,7 +65,6 @@ stdenv.mkDerivation (finalAttrs: { pipewire pixman pulseaudio - scdoc tllist udev ] ++ lib.optionals (waylandSupport) [ |