summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL2
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2020-06-24 20:40:00 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2020-06-25 00:09:22 -0400
commit1a835f911b309c3a44a86ff6652cbc9502bfd772 (patch)
treea867b33b2b1ba51a4c28e00bb063a8e9d1582f1a /pkgs/development/libraries/SDL2
parent34e4d0fd98aa66a0f46a6eb96dabadbbd44294b9 (diff)
downloadnixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.tar
nixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.tar.gz
nixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.tar.bz2
nixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.tar.lz
nixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.tar.xz
nixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.tar.zst
nixpkgs-1a835f911b309c3a44a86ff6652cbc9502bfd772.zip
SDL2: get native wayland-scanner
Diffstat (limited to 'pkgs/development/libraries/SDL2')
-rw-r--r--pkgs/development/libraries/SDL2/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL2/default.nix b/pkgs/development/libraries/SDL2/default.nix
index 5f3d42b4da3..40fe1c42d7a 100644
--- a/pkgs/development/libraries/SDL2/default.nix
+++ b/pkgs/development/libraries/SDL2/default.nix
@@ -42,9 +42,14 @@ stdenv.mkDerivation rec {
     substituteInPlace include/SDL_opengl_glext.h \
       --replace "typedef ptrdiff_t GLsizeiptr;" "typedef signed long int khronos_ssize_t; typedef khronos_ssize_t GLsizeiptr;" \
       --replace "typedef ptrdiff_t GLintptr;" "typedef signed long int khronos_intptr_t; typedef khronos_intptr_t GLintptr;"
+
+    substituteInPlace configure \
+      --replace 'WAYLAND_SCANNER=`$PKG_CONFIG --variable=wayland_scanner wayland-scanner`' 'WAYLAND_SCANNER=`pkg-config --variable=wayland_scanner wayland-scanner`'
   '';
 
-  nativeBuildInputs = [ pkgconfig ];
+  depsBuildBuild = [ pkgconfig ];
+
+  nativeBuildInputs = [ pkgconfig wayland ];
 
   propagatedBuildInputs = dlopenPropagatedBuildInputs;