python3.pkgs.pywayland: depend on wayland-scanner

Otherwise, wayland-scanner would be picked up from the wayland in
buildInputs, which isn't cross-friendly and will stop working when we
split wayland-scanner into a separate package.
This commit is contained in:
Alyssa Ross 2023-02-08 22:59:48 +00:00 committed by Florian Klink
parent 75ea55bdfe
commit bc10b4260d
2 changed files with 5 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchFromGitHub, pkg-config, meson, cmake, ninja, gst_all_1, wrapQtAppsHook, qtbase, qtmultimedia, layer-shell-qt }:
{ stdenv, lib, fetchFromGitHub, pkg-config, meson, cmake, ninja, gst_all_1, wrapQtAppsHook, qtbase, qtmultimedia, layer-shell-qt, wayland-scanner }:
let
gstreamerPath = with gst_all_1; lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" [
gstreamer
@ -24,6 +24,7 @@ in stdenv.mkDerivation rec {
cmake # only used for find layer-shell-qt
ninja
wrapQtAppsHook
wayland-scanner
];
buildInputs = [

View File

@ -6,6 +6,7 @@
cffi,
pkg-config,
wayland,
wayland-scanner,
pytestCheckHook,
}:
@ -19,7 +20,8 @@ buildPythonPackage rec {
hash = "sha256-WYreAng6rQWjKPZjtRtpTFq2i9XR4JJsDaPFISxWZTM=";
};
nativeBuildInputs = [ pkg-config ];
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ pkg-config wayland-scanner ];
propagatedNativeBuildInputs = [ cffi ];
buildInputs = [ wayland ];
propagatedBuildInputs = [ cffi ];