Unverified Commit ba65eb8b authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

widelands: add asio 1.36.0 compat patch (#470832)

parents 74e51b91 56663994
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  stdenv,
  fetchFromGitHub,
  fetchpatch,
  pkg-config, # needed to find minizip
  SDL2,
  SDL2_image,
@@ -38,6 +39,14 @@ stdenv.mkDerivation rec {
    sha256 = "sha256-/MEeb0KnefK812w5y238Icd4gW85d/pvZ08xnlVXDdk=";
  };

  patches = [
    (fetchpatch {
      name = "modern-asio.patch";
      url = "https://codeberg.org/wl/widelands/pulls/5025.patch";
      sha256 = "sha256-ip9ZG9u/z7G+yG7xrEvi+DH9vsjRzYWhEe0rEjxHzzY=";
    })
  ];

  postPatch = ''
    substituteInPlace xdg/org.widelands.Widelands.desktop \
      --replace 'Exec=widelands' "Exec=$out/bin/widelands"