dmenu-wayland: support cross-compilation

+13 -2
+13 -2
pkgs/applications/misc/dmenu/wayland.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, meson, ninja, cairo, pango, pkg-config, wayland-protocols 2 - , glib, wayland, libxkbcommon, makeWrapper 2 + , glib, wayland, libxkbcommon, makeWrapper, wayland-scanner 3 + , fetchpatch 3 4 }: 4 5 5 6 stdenv.mkDerivation rec { ··· 15 16 16 17 outputs = [ "out" "man" ]; 17 18 18 - nativeBuildInputs = [ meson ninja pkg-config makeWrapper ]; 19 + depsBuildBuild = [ pkg-config ]; 20 + nativeBuildInputs = [ meson ninja pkg-config makeWrapper wayland-scanner ]; 19 21 buildInputs = [ cairo pango wayland-protocols glib wayland libxkbcommon ]; 22 + 23 + # Patch to support cross-compilation, see https://github.com/nyyManni/dmenu-wayland/pull/23/ 24 + patches = [ 25 + # can be removed when https://github.com/nyyManni/dmenu-wayland/pull/23 is included 26 + (fetchpatch { 27 + url = "https://github.com/nyyManni/dmenu-wayland/commit/3434410de5dcb007539495395f7dc5421923dd3a.patch"; 28 + sha256 = "sha256-im16kU8RWrCY0btYOYjDp8XtfGEivemIPlhwPX0C77o="; 29 + }) 30 + ]; 20 31 21 32 postInstall = '' 22 33 wrapProgram $out/bin/dmenu-wl_run \