Unverified Commit 75762615 authored by zowoq's avatar zowoq Committed by GitHub
Browse files

fex: 2509.1 -> 2510 (#450537)

parents de69d2ba 8eb559de
Loading
Loading
Loading
Loading
+13 −2
Original line number Diff line number Diff line
@@ -26,6 +26,7 @@
  xorg,
  withQt ? true,
  qt6,
  fetchpatch,
}:

let
@@ -95,13 +96,13 @@ let
in
llvmPackages.stdenv.mkDerivation (finalAttrs: {
  pname = "fex";
  version = "2509.1";
  version = "2510";

  src = fetchFromGitHub {
    owner = "FEX-Emu";
    repo = "FEX";
    tag = "FEX-${finalAttrs.version}";
    hash = "sha256-eTm1ee8eS+OwzEUoklrrQDRIAJVX0FWBaWi2/TJrx48=";
    hash = "sha256-C6Yeqo+KqA6OezxnpBAncTekOrPTgIq0vikQOmxaORA=";

    leaveDotGit = true;
    postFetch = ''
@@ -127,6 +128,16 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
    '';
  };

  patches = [
    # Backported fix of unit test build with LLVM 21.
    # TODO: drop after next release
    (fetchpatch {
      name = "unittests-thunklibs-fix-build-with-llvm-21.patch";
      url = "https://github.com/FEX-Emu/FEX/commit/5af2477d005bb0ab8b11633a678ed5f6121f81b6.patch";
      hash = "sha256-QdJaexzBSOVaKc3h2uwPbX4iysqvGBDmWH938ZeXcdE=";
    })
  ];

  postPatch = ''
    substituteInPlace ThunkLibs/GuestLibs/CMakeLists.txt ThunkLibs/HostLibs/CMakeLists.txt \
      --replace-fail "/usr/include/libdrm" "${devRootFS}/include/libdrm" \