summary refs log tree commit diff
path: root/pkgs/applications/misc/dmenu
diff options
context:
space:
mode:
authorRick van Schijndel <rol3517@gmail.com>2021-07-15 22:01:32 +0200
committerRick van Schijndel <rol3517@gmail.com>2021-07-16 20:03:56 +0200
commitf3c271e797426a018d463cc487f48a9ca20f40e0 (patch)
treed3cfd495ec4111a14c5d23ebde8d11527b1ee8bb /pkgs/applications/misc/dmenu
parentbdc08fd5c50c2c2fe0a3eee2686bf871c9b49c71 (diff)
downloadnixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.tar
nixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.tar.gz
nixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.tar.bz2
nixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.tar.lz
nixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.tar.xz
nixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.tar.zst
nixpkgs-f3c271e797426a018d463cc487f48a9ca20f40e0.zip
dmenu-wayland: support cross-compilation
Diffstat (limited to 'pkgs/applications/misc/dmenu')
-rw-r--r--pkgs/applications/misc/dmenu/wayland.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/applications/misc/dmenu/wayland.nix b/pkgs/applications/misc/dmenu/wayland.nix
index 8d77588ce8f..6b8f92ddb1c 100644
--- a/pkgs/applications/misc/dmenu/wayland.nix
+++ b/pkgs/applications/misc/dmenu/wayland.nix
@@ -1,5 +1,6 @@
 { lib, stdenv, fetchFromGitHub, meson, ninja, cairo, pango, pkg-config, wayland-protocols
-, glib, wayland, libxkbcommon, makeWrapper
+, glib, wayland, libxkbcommon, makeWrapper, wayland-scanner
+, fetchpatch
 }:
 
 stdenv.mkDerivation rec {
@@ -15,9 +16,19 @@ stdenv.mkDerivation rec {
 
   outputs = [ "out" "man" ];
 
-  nativeBuildInputs = [ meson ninja pkg-config makeWrapper ];
+  depsBuildBuild = [ pkg-config ];
+  nativeBuildInputs = [ meson ninja pkg-config makeWrapper wayland-scanner ];
   buildInputs = [ cairo pango wayland-protocols glib wayland libxkbcommon ];
 
+  # Patch to support cross-compilation, see https://github.com/nyyManni/dmenu-wayland/pull/23/
+  patches = [
+    # can be removed when https://github.com/nyyManni/dmenu-wayland/pull/23 is included
+    (fetchpatch {
+      url = "https://github.com/nyyManni/dmenu-wayland/commit/3434410de5dcb007539495395f7dc5421923dd3a.patch";
+      sha256 = "sha256-im16kU8RWrCY0btYOYjDp8XtfGEivemIPlhwPX0C77o=";
+    })
+  ];
+
   postInstall = ''
     wrapProgram $out/bin/dmenu-wl_run \
       --prefix PATH : $out/bin